distriqt / ANE-Message

Send messages from AIR using email and SMS
https://airnativeextensions.com/extension/com.distriqt.Message
0 stars 0 forks source link

Android Packaging Error #11

Closed bma73 closed 9 years ago

bma73 commented 9 years ago

I get an error when trying to create an Android package with the "Message ANE" included. I'm using the latest AIR Build (17.0.0.138) on Windows 8.1 64Bit.

Command adt -package -target apk-captive-runtime -storetype pkcs12 -keystore "cert\cert.p12" "dist\app-captive-runtime.apk" "application.xml" -C bin . -C "icons/android" . -extdir ane/

Error aapt tool failed:C:\Users\BJRN~1\AppData\Local\Temp\2ff3389a-3885-403b-9042-c42c12c46ec4\app_entry_res\values\strings.xml:19: error: Resource at app_version appears in overlay but not in the base package; use to add. C:\Users\BJRN~1\AppData\Local\Temp\2ff3389a-3885-403b-9042-c42c12c46ec4\app_entry_res\values\strings.xml:20: error: Resource at button_install appears in overlay but not in the base package; use to add. C:\Users\BJRN~1\AppData\Local\Temp\2ff3389a-3885-403b-9042-c42c12c46ec4\app_entry_res\values\strings.xml:21: error: Resource at button_exit appears in overlay but not in the base package; use to add. C:\Users\BJRN~1\AppData\Local\Temp\2ff3389a-3885-403b-9042-c42c12c46ec4\app_entry_res\values\strings.xml:22: error: Resource at title_adobe_air appears in overlay but not in the base package; use to add. C:\Users\BJRN~1\AppData\Local\Temp\2ff3389a-3885-403b-9042-c42c12c46ec4\app_entry_res\values\strings.xml:23: error: Resource at text_runtime_required appears in overlay but not in the base package; use to add. C:\Users\BJRN~1\AppData\Local\Temp\2ff3389a-3885-403b-9042-c42c12c46ec4\app_entry_res\values\strings.xml:24: error: Resource at text_install_runtime appears in overlay but not in the base package; use to add. C:\Users\BJRN~1\AppData\Local\Temp\2ff3389a-3885-403b-9042-c42c12c46ec4\app_entry_res\values\strings.xml:25: error: Resource at text_runtime_on_external_storage appears in overlay but not in the base package; use to add. C:\Users\BJRN~1\AppData\Local\Temp\2ff3389a-3885-403b-9042-c42c12c46ec4\app_entry_res\values\strings.xml:27: error: Resource at text_gamepreview_loading appears in overlay but not in the base package; use to add. C:\Users\BJRN~1\AppData\Local\Temp\2ff3389a-3885-403b-9042-c42c12c46ec4\app_entry_res\values\strings.xml:28: error: Resource at text_gamepreview_loading_error appears in overlay but not in the base package; use to add. C:\Users\BJRN~1\AppData\Local\Temp\2ff3389a-3885-403b-9042-c42c12c46ec4\app_entry_res\values\strings.xml:29: error: Resource at text_install_gamepreview_app appears in overlay but not in the base package; use to add. ...

marchbold commented 9 years ago

I'll look into this error. Are you using any other ANE's?

bma73 commented 9 years ago

Yes, I'm also using com.distriqt.Application com.distriqt.DeviceMotion com.distriqt.InAppBilling

bma73 commented 9 years ago

I tried the latest build from Github but unfortunately the error is still there! Is there any chance to fix it soon?

marchbold commented 9 years ago

What version of Java do you have installed on your machine?

bma73 commented 9 years ago

I'm using "JRE (build 1.7.0_09-b05)"

marchbold commented 9 years ago

Can you try using an older version of AIR, (16)? Just trying to rule out the possibilities here and there have been some buggy reports for 17 and Android

bma73 commented 9 years ago

Just tried AIR version 16 and 18. Same errors for both...

marchbold commented 9 years ago

Does this error occur with the example application?

marchbold commented 9 years ago

Hi, Could you try including the GooglePlayServices ANE ? Including this has solved a similar problem in one of our other ANE's

Due to several of our ANE's using the Google Play Services library the library has been separated into a separate ANE allowing you to avoid conflicts and duplicate definitions.

This means that you need to include the com.distriqt.GooglePlayServices native extension in your application along with this extension. You can access this extension here: https://github.com/distriqt/ANE-GooglePlayServices.

You'll add this extension as you do with any other ANE, you just need to ensure it's packaged with your application. There is no problems including this on all platforms, it is just required on Android.

bma73 commented 9 years ago

Yep, that solved it... Thanks!

marchbold commented 9 years ago

No problems

lucien144 commented 9 years ago

This solution increases the app about 6MB - is this really the best solution?

marchbold commented 9 years ago

We've found a better solution. The problem is an issue in the AIR packager on Windows however we've found a workaround that's been working in all our tests so far. Will be publishing this today.