1
votes

I am trying to add a library that uses google play service vision. My library works well on a native android project as long as I add the play service vision lib to the app. I have added the following build hints in a Codename One project:

enter image description here With that build hint i have the following build error:

/tmp/build731648870085799025xxx/MyApplication/build/intermediates/res/merged/debug/values/values.xml:64: AAPT: Error retrieving parent for item: No resource found that matches the given name 'ThemeOverlay.AppCompat.Dark.ActionBar'.

    /tmp/build731648870085799025xxx/MyApplication/build/intermediates/exploded-aar/materialbarcodescanner-release/res/values/values.xml:9:5-12:13: AAPT: No resource found that matches the given name: attr 'windowActionBar'.

    /tmp/build731648870085799025xxx/MyApplication/build/intermediates/exploded-aar/materialbarcodescanner-release/res/values/values.xml:9:5-12:13: AAPT: No resource found that matches the given name: attr 'windowNoTitle'.

    /tmp/build731648870085799025xxx/MyApplication/build/intermediates/res/merged/debug/values/values.xml:69: AAPT: Error retrieving parent for item: No resource found that matches the given name 'ThemeOverlay.AppCompat.Light'.

That issue is not related to the google play service lib: I have the same issue when I try to use a simple library that just uses a toastbar. Perhaps android studio generated some resources that can not be used in codename one ?

When I try to change the google play service version with the following build hint:enter image description here

The google play service lib is not found anymore:

 Could not find com.google.android.gms:play-services-vision:10.0.
 Searched in the following locations:
     https://jcenter.bintray.com/com/google/android/gms/play-services-vision/10.0/play-services-vision-10.0.pom
     https://jcenter.bintray.com/com/google/android/gms/play-services-vision/10.0/play-services-vision-10.0.jar
     file:/tmp/build3506878302752944909xxx/MyApplication/libs/play-services-vision-10.0.jar
     file:/tmp/build3506878302752944909xxx/MyApplication/libs/play-services-vision.jar
     file:/home/ec2-user/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-vision/10.0/play-services-vision-10.0.pom
     file:/home/ec2-user/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-vision/10.0/play-services-vision-10.0.jar
     file:/home/ec2-user/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-vision/10.0/play-services-vision-10.0.pom
     file:/home/ec2-user/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-vision/10.0/play-services-vision-10.0.jar
 Required by:
     :MyApplication:unspecified

How can I change the google play service version and how can I add my libraries properly ?

1
I'm looking into this... - Shai Almog

1 Answers

2
votes

Change the android.playServicesVersion to 10.0.0 or 10.0.1. Either of those should work.