我正在尝试构建android服装应用程序,如果我将minsdk设置为20/21。它给出了以下错误,
但如果我将它设置为19,我会收到以下错误:
/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.binpress.com/tutorial/how-to-create-a-custom-android-wear-watch-face/120
答案 0 :(得分:3)
我对API级别(deviceSdk = API 1)有同样的错误。我通过将手表重置为出厂设置(设置>重置设备)来修复它。当我再次使用手机配对时,报告了正确的API级别。
答案 1 :(得分:0)
您是否通过蓝牙调试连接了手表?
这可能会解决您的问题:http://melix.github.io/blog/2014/10/android-moto360.html