deviceSdk (API 1)" I am trying to create an application for a...">

The Android Wear device selection box says: "offline localhost: 4444 minSdk (API 20)> deviceSdk (API 1)"

I am trying to create an application for an android application if I set minsdk to 20/21. He gives an error below

enter image description here

But if I set it to 19, I get the 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 

What to do to launch it? I try sample code from here => http://www.binpress.com/tutorial/how-to-create-a-custom-android-wear-watch-face/120

+5
source share
2 answers

I had the same error about API levels (deviceSdk = API 1). I installed it by resetting the clock to factory (Settings> Reset). When I connected it to the phone again, the corresponding API level was reported.

+3
source

Do you have a watch connected via Bluetooth Debugging?

This may solve your problem: http://melix.imtqy.com/blog/2014/10/android-moto360.html

0
source

Source: https://habr.com/ru/post/1206970/


All Articles