Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling apk for Android fails #259

Open
farver opened this issue Mar 27, 2018 · 12 comments
Open

Compiling apk for Android fails #259

farver opened this issue Mar 27, 2018 · 12 comments

Comments

@farver
Copy link

farver commented Mar 27, 2018

Hi freshplanet

Thanks for the useful ANE! I seem to have an issue compiling for Android with the latest binary, though.
I can compile a working iOS app with AIR SDK compiler v 29.0.0.112. Trying to compile for Android, however, I get these errors:

aapt tool failed:/private/var/folders/1d/3t28g89j2w1cjb0_kjz7pcrw0000gn/T/298d28f6-11fa-472d-a1b1-9b8c52f03737/AirFacebook-res/values/values.xml:161: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.NoActionBar'.

/private/var/folders/1d/3t28g89j2w1cjb0_kjz7pcrw0000gn/T/298d28f6-11fa-472d-a1b1-9b8c52f03737/AirFacebook-res/values/values.xml:166: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Dialog'.

Am I doing something wrong? Or is there something missing in the binary?

@Kelsonk
Copy link

Kelsonk commented Apr 6, 2018

I also have this problem. Really could use a fix.

@mumeka
Copy link

mumeka commented Apr 24, 2018

Yes same problem related to AppCompat. A fix can be cool

@franmocad
Copy link

Same problem. Any solution?

@leandrop20
Copy link

Same problem :(

@mtilhan
Copy link

mtilhan commented Jul 21, 2018

same problem

@CaptainHug
Copy link

I've made the changes needed in a fork here and included an updated bin: https://github.com/CaptainHug/ANE-Facebook

You will need to replace some things in the AIRSDK folder too, as it has been built with an older version of the linker. You can find what you need here: https://github.com/CaptainHug/ANE-Facebook/blob/master/ios/AIRSDK_overlay.zip

@mumeka
Copy link

mumeka commented Jul 31, 2018

error

There is still error at android packaging I don't why this is happening.

@CaptainHug
Copy link

Looks like you are including another ANE that already includes some or all of the Android resources. You will most likely need a different build, commenting out the Android resources that you already have included in your project from the build/platform-android.xml file, but retaining the iOS changes.

@mumeka
Copy link

mumeka commented Jul 31, 2018

Yes after trying your compiled ane at a clean project it works, however it is conflicting with my current anes. I will try to delete some resources as you suggested.

@albermotion
Copy link

same problem here

@orcuncun
Copy link

How to resolve file conflicts within another ANE FİLES?

@rainbowcreatures
Copy link

Just to clarify these for anyone else, to git rid of those build errors you need to include AppCompatV7 and CardViewV7 ane's. Those can be found as part of other ANE packages(like distriqt), usually they are free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants