Exporting Android Studio Project Serious Issues.

This forum contains topics that were moved from Get Satisfaction
Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Exporting Android Studio Project Serious Issues.

Post 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.

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

Exporting Android Studio Project Serious Issues.

Post by Serhii Kulibaba »

Hello,

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

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Exporting Android Studio Project Serious Issues.

Post 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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Exporting Android Studio Project Serious Issues.

Post 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.

Matt6607699
Posts: 0
Joined: Sat Jan 25, 2014 7:18 am

Exporting Android Studio Project Serious Issues.

Post 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

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Exporting Android Studio Project Serious Issues.

Post 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.

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

Exporting Android Studio Project Serious Issues.

Post 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);
Oldestman57
Posts: 0
Joined: Thu Mar 31, 2016 9:15 pm

Exporting Android Studio Project Serious Issues.

Post 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

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

Exporting Android Studio Project Serious Issues.

Post by Serhii Kulibaba »

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

Oldestman57
Posts: 0
Joined: Thu Mar 31, 2016 9:15 pm

Exporting Android Studio Project Serious Issues.

Post by Oldestman57 »

I have Android SDK.

Post Reply