我正在尝试构建 Android Wear 应用程序,如果我将 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 http://www.binpress.com/tutorial/how-to-create-a-custom-android-wear-watch-face/120
我对 API 级别也有同样的错误(deviceSdk = API 1)。我通过将手表重置为出厂设置(设置 > 重置设备)来修复此问题。当我再次将其与手机配对时,会报告正确的 API 级别。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)