Page 1 of 5

Exporting Android Studio Project Serious Issues.

Posted: Mon Mar 06, 2017 2:03 am
by Emmz

Simple to reproduce.
Create a jquery Appery App.
Change libraries to 4.0 use debug mode.
Enable all Cordova plugins (use none of mine)
No source changes, No other changes.
Export Android Studio Project.

Now just try to open it in Android Studio v2.2 or 2.3
When building you get 101 fatal errors.!!
Like....
Error:(26, 39) error: package com.google.zxing.client.android does not exist
Error:(43, 34) error: package android.support.v4.content does not exist
Error:(31, 34) error: cannot find symbol variable RemoteInput
Error:(20, 49) error: package android.support.v4.app.NotificationCompat does not exist
Error:(26, 34) error: package com.google.android.gms.gcm does not exist
Error:(66, 42) error: cannot find symbol method getApplicationContext()
and on and on.
But yet Appery will build an APK

Whats wrong with the new libraries.
btw... Been exporting Appery Source files for years and hundreds of times. So please be considerate.


Exporting Android Studio Project Serious Issues.

Posted: Mon Mar 06, 2017 8:43 pm
by Serhii Kulibaba

Hello,

Please clarify, what version of plugins do you use? Please use the last one for the libraries 4.0


Exporting Android Studio Project Serious Issues.

Posted: Mon Mar 06, 2017 9:49 pm
by Emmz

Please read my post.
Yes libraries 4.
Exporting Android studio project using Libraries 3.1 works fine.
So YES, libraries 4

I'm following up on this using priority support again.


Exporting Android Studio Project Serious Issues.

Posted: Tue Mar 07, 2017 7:54 am
by Evgene Karachevtsev

Hello,

Unfortunately this is the bug, we're working on it at the moment and will get back to you as soon as have any update from our development team.


Exporting Android Studio Project Serious Issues.

Posted: Wed Mar 29, 2017 7:23 pm
by Matt6607699

I'm having this same issue using ionic app v1.2.

*update
I was able to get a build after following the GUI library dependency install suggestions here:

http://stackoverflow.com/questions/19...

I also added the android.gms:play-service


Exporting Android Studio Project Serious Issues.

Posted: Thu Mar 30, 2017 8:57 am
by Emmz

Glad your project is working.
But your fix is not related to the problem. This issue is related to Apperys v4 libraries, not Android v4- support libraries.
The SO link is several years old and the problem was gradle file entries.

When Appery fixes the project export for Android when using their v4 libraries I will report back here.


Exporting Android Studio Project Serious Issues.

Posted: Mon Apr 03, 2017 5:12 pm
by Serhii Kulibaba

Hello Emmz,

Please don't open the project in the Android Studio before build it with Cordova.

  1. Expors sources;
  2. Extract them;
  3. Open the folder "cordova" here;
  4. Run codebuild/code (codebuild.sh/code for the Linux or Mac);

Exporting Android Studio Project Serious Issues.

Posted: Mon Apr 03, 2017 8:59 pm
by Oldestman57

Sergiy,

I have the same situation as Emmz.
I have the cordova folder open in Windows file explorer, but do not see a Run command in the right click menu for the build file.
Did you mean to do this from the Windows command line prompt?

Thanks,
DeWayne


Exporting Android Studio Project Serious Issues.

Posted: Tue Apr 04, 2017 6:54 pm
by Serhii Kulibaba

Please run the build.bat file for that.
Do you have node.js and Android SDK on your PC?


Exporting Android Studio Project Serious Issues.

Posted: Wed Apr 05, 2017 1:12 am
by Oldestman57

I have Android SDK.