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

Fails Codename One compilation on Android 29 #5

Closed
jeeneeno opened this issue Jun 25, 2021 · 3 comments
Closed

Fails Codename One compilation on Android 29 #5

jeeneeno opened this issue Jun 25, 2021 · 3 comments

Comments

@jeeneeno
Copy link

The following errors are generated when sending a build to CN1 :

/home/ec2-user/.gradle/caches/transforms-1/files-1.1/jetified-mobile-ffmpeg.aar/18ebf87419f30dcb6e6aefd9a22390bc/res/values/values.xml:6:5-11:13: AAPT: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.

/home/ec2-user/.gradle/caches/transforms-1/files-1.1/jetified-mobile-ffmpeg.aar/18ebf87419f30dcb6e6aefd9a22390bc/res/values/values.xml:6:5-11:13: AAPT: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.

/home/ec2-user/.gradle/caches/transforms-1/files-1.1/jetified-mobile-ffmpeg.aar/18ebf87419f30dcb6e6aefd9a22390bc/res/values/values.xml:6:5-11:13: AAPT: No resource found that matches the given name: attr 'colorAccent'.

/home/ec2-user/.gradle/caches/transforms-1/files-1.1/jetified-mobile-ffmpeg.aar/18ebf87419f30dcb6e6aefd9a22390bc/res/values/values.xml:6:5-11:13: AAPT: No resource found that matches the given name: attr 'colorPrimary'.

/home/ec2-user/.gradle/caches/transforms-1/files-1.1/jetified-mobile-ffmpeg.aar/18ebf87419f30dcb6e6aefd9a22390bc/res/values/values.xml:6:5-11:13: AAPT: No resource found that matches the given name: attr 'colorPrimaryDark'.

/home/ec2-user/.gradle/caches/transforms-1/files-1.1/jetified-mobile-ffmpeg.aar/18ebf87419f30dcb6e6aefd9a22390bc/res/values/values.xml:6:5-11:13: AAPT: No resource found that matches the given name: attr 'colorAccent'.

/home/ec2-user/.gradle/caches/transforms-1/files-1.1/jetified-mobile-ffmpeg.aar/18ebf87419f30dcb6e6aefd9a22390bc/res/values/values.xml:6:5-11:13: AAPT: No resource found that matches the given name: attr 'colorPrimary'.

/home/ec2-user/.gradle/caches/transforms-1/files-1.1/jetified-mobile-ffmpeg.aar/18ebf87419f30dcb6e6aefd9a22390bc/res/values/values.xml:6:5-11:13: AAPT: No resource found that matches the given name: attr 'colorPrimaryDark'.

@jsfan3
Copy link
Owner

jsfan3 commented Jun 28, 2021

I apologize for the late reply, the notification of your message was among other notifications.

I've just sent an iOS and an Android build of a Maven project containing my VideoOptimizer cn1lib. The builds were compiled without any error (I used the migration tool of Steve, previously this was an Ant project).

Do you have the build hints android.min_sdk_version=24 and android.multidex=true?
Have you migrated to Maven?

Have you tried the cn1lib in a new bare bones project downloaded from https://start.codenameone.com/?

I don't guess what could be the cause of the errors you reported.

@jsfan3
Copy link
Owner

jsfan3 commented Jun 28, 2021

If you have the build hint android.buildToolsVersion=28 or android.buildToolsVersion=29, please remove it.

@jeeneeno
Copy link
Author

jeeneeno commented Jul 5, 2021

Hi

Thank you for your reply.

I removed the build hint "android.buildToolsVersion=29" and all appears well :-)

Thank you.

@jeeneeno jeeneeno closed this as completed Jul 5, 2021
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

2 participants