2017-10-18 7 views
1

Google Playサービスビジョンを使用するライブラリを追加しようとしています。私の図書館は、プレイサービスビジョンのlibをアプリに追加する限り、ネイティブのアンドロイドプロジェクトでうまくいきます。私は、次のビルドエラーを持っているビルドヒントでGoogle Playサービスビジョンでライブラリを使用する

enter image description here :私はコードネーム一つのプロジェクトにヒントを構築し、次を追加した

/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'. 

その問題がGoogleに関連していないサービスのLIBを再生する:I私はトーストバーを使用する単純なライブラリを使用しようとすると同じ問題があります。おそらくアンドロイドスタジオがコードネーム1で使用できないリソースを生成しましたか?

私は、次のビルドヒントとGoogle Playのサービスのバージョンを変更しようとすると:enter image description here

Googleがサービス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 

私は、Googleがサービスを果たし変更するにはどうすればよいですバージョンとライブラリを正しく追加するにはどうしたらいいですか?

+0

私はこれを探しています... –

答えて

2

android.playServicesVersion10.0.0または10.0.1に変更してください。どちらかがうまくいくはずです。

+0

これは、再生サービスで私の問題を解決していただきありがとうございます。コードネーム1にaar android native libraryを追加しようとするときに発生する2番目の問題を解決する方法を知りませんか? – Jonas

+0

2番目の問題はこの質問から何が分かりませんか? –

+0

申し訳ありません私はshoudが2つの質問を書いたと思います。私は外部aarアンドロイドライブラリを使用しようとしています。このライブラリはネイティブアンドロイドアプリで動作しますが、Codename Oneでビルドエラーが発生しています。私の記事の最初のコードブロックを見てください:いくつかのリソースがありません。これはアンドロイドスタジオで作成したライブラリで起こっています。私はトースト法で1つのクラスだけを入れてもこの問題があります。それが不明な場合は、私は新しい質問をします。あなたの懸念をありがとう@ShaiAlmog – Jonas

関連する問題