Matt Albinson
Posts: 0
Joined: Mon Dec 09, 2013 6:29 pm

Project Not Compiling into APK

My Appery project :

ID = 122322
https://appery.io/app/project/7cfd788...

Name: Schonnect

Is failing to build either in Eclipse or using the Appery web interface. When I pull the Eclipse project there is a build error in ChildBrowser.java.

I would like to be able to build completely in Appery.

Help?

Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Project Not Compiling into APK

Hi Matt,

As I can see in your project, you have made changes in ANDROID folder in Source tab - try to delete the files/folders you've changed and make 'Undo all source changes'.

And if you are using your own certificate tick the Release in Android binary tab.
Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Project Not Compiling into APK

Hello! Update: don't do anything on source tab. There is another reason for error on screen. You use Android API Level 18 or higher. There is a method setPluginsEnabled which has been deleted. Replace this line presettings.setPluginsEnabled(true);/pre with the following presettings.setPluginState(WebSettings.PluginState.ON);/pre

Matt Albinson
Posts: 0
Joined: Mon Dec 09, 2013 6:29 pm

Project Not Compiling into APK

Thanks - but it looks like that method has been deprecated as well:

From:
http://developer.android.com/referenc...

setPluginState(WebSettings.PluginState state)
This method was deprecated in API level 18. Plugins will not be supported in future, and should not be used.

Commenting out line

//settings.setPluginState(WebSettings.PluginState.ON);

Allows it to compile in Android Studio, but even when commented the build fails in Appery.

I'm not sure which Android API version I am using or how to set that...

Thanks!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Project Not Compiling into APK

Hi Matt,

You can use Android API 10.

Matt Albinson
Posts: 0
Joined: Mon Dec 09, 2013 6:29 pm

Project Not Compiling into APK

Ok, I'll try to figure out how to set Android API Version in Appery, or can you tell me?

And is PhoneGap going to make their code compatible with the current version of the Android API?

Thanks.

Matt Albinson
Posts: 0
Joined: Mon Dec 09, 2013 6:29 pm

Project Not Compiling into APK

Help please?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Project Not Compiling into APK

Hi Matt,

You can find the correspondence of Android version and Android API here: http://developer.android.com/about/da...

In Appery.io you can select OS version in App Settings-Android binary- Min. SDK version и Target SDK version

Matt Albinson
Posts: 0
Joined: Mon Dec 09, 2013 6:29 pm

Project Not Compiling into APK

Hi Katya,

Hmm, both my Min and Target SDK versions are set to 2.2 and the project still does not compile in Appery.

I can export to Eclipse and comment out that line and get the code to compile.

Are other customers not experiencing this? This seems like an issue that would prevent all apps from compiling to an apk.

What do you suggest?

Thanks.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Project Not Compiling into APK

Hello!
1) There is no need to comment anything in java files. Leave it as it is (or you can just delete files you've changed and click "Undo all source changes" on ANDROID folder
2) You have incorrect certificate. Please generate correct one https://getsatisfaction.com/apperyio/...

Return to “Issues”