由网友(撩妹高手)分享简介:我试图构建Android应用程序的磨损,如果我设置为minsdk 20/21。它提供了以下错误,I am trying to build android wear application, If I set minsdk to 20/21. It gives error below,但是,如果我将它设置为19,我得到...
我试图构建Android应用程序的磨损,如果我设置为minsdk 20/21。它提供了以下错误,
I am trying to build android wear application, If I set minsdk to 20/21. It gives error below,
但是,如果我将它设置为19,我得到以下错误:
But if I set it to 19, I get following error:
/home/bhupinder/AndroidStudioProjects/MyWatch/app/src/main/AndroidManifest.xml:0:0 Error:
uses-sdk:minSdkVersion 19 cannot be smaller than version 20 declared in library /home/bhupinder/AndroidStudioProjects/MyWatch/app/build/intermediates/exploded-aar/com.google.android.support/wearable/1.0.0/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="android.support.wearable" to force usage
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 19 cannot be smaller than version 20 declared in library /home/bhupinder/AndroidStudioProjects/MyWatch/app/build/intermediates/exploded-aar/com.google.android.support/wearable/1.0.0/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="android.support.wearable" to force usage
我应该怎么做才能运行呢?我从这里=> http://www.bin$p$pss.com/tutorial/how-to-create-a-custom-android-wear-watch-face/120
推荐答案
我对API级别(deviceSdk = API 1)同样的错误。我的表恢复到出厂设置(设置>复位设备)固定它。当我与手机配对再次据报道合适的API级别。
I had the same error about API levels (deviceSdk = API 1). I fixed it by resetting the watch to factory settings (Settings > Reset device). When I paired it again with the phone the proper API level was reported.
相关推荐
最新文章