在Google play服务愿景中使用库
我想添加一个使用谷歌播放服务愿景的库。只要我将play service vision lib添加到应用程序中,我的图书馆就可以在原生的android项目上很好地工作。我已经添加了以下的代号为一个项目建立提示:在Google play服务愿景中使用库
/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'.
这个问题不涉及到谷歌播放服务的lib:我当我尝试使用一个简单的库,只使用一个Toastbar时,有同样的问题。也许android studio生成了一些无法在代码名称中使用的资源?
在谷歌Play业务的lib不再被发现:
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
我如何更改谷歌播放服务版本以及如何正确添加我的库?
将android.playServicesVersion
更改为10.0.0
或10.0.1
。这些都应该工作。
这解决了我与玩游戏服务的问题谢谢。你有什么线索可以解决当我尝试在Codename one中添加aar android本地库时发生的第二个问题吗? – Jonas
目前还不清楚问题的第二个问题是什么? –
对不起,我想我应该写两个问题。我正在尝试使用外部的aar android库。这个库在原生android应用程序上工作,但我有Codename One的构建错误。查看我的文章中的第一部分代码:缺少一些资源。这发生在我用android Studio创建的库中。我有这个问题,即使我只用一个吐司方法放一个类。如果那'不清楚,我会问一个新的问题。感谢您的关注@ShaiAlmog – Jonas
我正在研究这个... –