distriqt / ANE-CustomResources

Android Custom Resources for AIR Applications
https://airnativeextensions.com
15 stars 4 forks source link

Error compile on Android #25

Closed fix89 closed 5 years ago

fix89 commented 6 years ago

Hi, When i compile my app I receive the error:

unexpected failure: duplicate entry: air/chogan/app/R.class java.util.zip.ZipException: duplicate entry: air/chogan/app/R.class at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:232) at java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:109) at com.adobe.air.apk.ResourceBytecodeGenerator.generateFromRFile(ResourceBytecodeGenerator.java:85) at com.adobe.air.apk.APKOutputStream.generateByteCodeFromRFile(APKOutputStream.java:1060) at com.adobe.air.apk.APKOutputStream.generateResourcesAndManifest(APKOutputStream.java:1017) at com.adobe.air.apk.APKOutputStream.addApplicationDescriptor(APKOutputStream.java:327) at com.adobe.air.ApplicationPackager.addSpecialFiles(ApplicationPackager.java:509) at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:87) at com.adobe.air.ADT.parseArgsAndGo(ADT.java:673) at com.adobe.air.ADT.run(ADT.java:471) at com.adobe.air.ADT.main(ADT.java:521)

I use this anes:

com.distriqt.NativeWebView com.distriqt.Core com.distriqt.Share com.distriqt.Firebase com.distriqt.playservices.Base com.distriqt.Application com.distriqt.PushNotifications com.distriqt.playservices.GCM com.distriqt.playservices.Ads com.distriqt.Adverts com.distriqt.Dialog com.distriqt.LocalAuth com.distriqt.androidsupport.V4 com.distriqt.androidsupport.AppCompatV7 com.distriqt.PDFReader com.distriqt.androidsupport.CustomTabs com.distriqt.CustomResources
marchbold commented 6 years ago

Hi,

In the config, don't change the android.package leave it as com.distriqt.extension.customresources and try building the ane again.

https://github.com/distriqt/ANE-CustomResources/blob/master/build_config/build.config#L11

This process was changed in a recent AIR release and we are currently updating the docs in this script.

fix89 commented 6 years ago

I will try soon, but I think i need to change it because i need this custom resurces ane to add firebase analitics with your firebase ane

marchbold commented 6 years ago

Hi, Yes that documentation is incorrect. You don't need to change it anymore. Could you point me to where it still says that?

fix89 commented 6 years ago

Ok it works. But I don't understand how to setup analytics on android. On iOS is ok, on Android does not work. I can't find ga_trackingId in the json or in the firebase console

marchbold commented 6 years ago

Firebase analytics? They are automatic based on your package name.

fix89 commented 6 years ago

Ok, but it does not works :-/

fix89 commented 6 years ago

Only on Android... on iOS everything is ok

marchbold commented 6 years ago

You'll have to make sure the values are correctly getting set in your configuration. Open an issue in the Firebase extension and we'll help you confirm it.