Android Wear设备选择框说:"离线本地主机:4444 minSdk(API 20)> deviceSdk(API 1)" [英] Android Wear device selection box says "offline localhost:4444 minSdk (API 20) > deviceSdk (API 1)"

查看:468
本文介绍了Android Wear设备选择框说:"离线本地主机:4444 minSdk(API 20)> deviceSdk(API 1)"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图构建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

我应该怎么做才能运行呢?我从这里=> <一个试图样本code href=\"http://www.bin$p$pss.com/tutorial/how-to-create-a-custom-android-wear-watch-face/120\">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.

这篇关于Android Wear设备选择框说:&QUOT;离线本地主机:4444 minSdk(API 20)&GT; deviceSdk(API 1)&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆