deviceSdk (API 1)"-6ren"> deviceSdk (API 1)"-我正在尝试构建 android wear 应用程序,如果我将 minsdk 设置为 20/21。它在下面给出错误, 但是如果我将它设置为 19,我会得到以下错误: /home/bhupinder/An-6ren">
gpt4 book ai didi

Android Wear 设备选择框显示 "offline localhost:4444 minSdk (API 20) > deviceSdk (API 1)"

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:54:49 25 4
gpt4 key购买 nike

我正在尝试构建 android wear 应用程序,如果我将 minsdk 设置为 20/21。它在下面给出错误,

enter image description here

但是如果我将它设置为 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

最佳答案

关于 API 级别(deviceSdk = API 1)我有同样的错误。我通过将 watch 重置为出厂设置(设置 > 重置设备)来修复它。当我再次将它与手机配对时,系统会报告正确的 API 级别。

关于Android Wear 设备选择框显示 "offline localhost:4444 minSdk (API 20) > deviceSdk (API 1)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26955383/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com