I followed the instructions in this link to create a simple mobile / wearable application in Android Studio. However, it does not recognize any of the classes related to the wearable SDK, since the error "cannot resolve the ______ character". A screenshot of this link is what I see.
Below is my build.gradle file:
apply plugin: 'com.android.application' android { compileSdkVersion 20 buildToolsVersion '20.0.0' defaultConfig { applicationId 'com.example.lsykora.androidwearwidget' minSdkVersion 'L' targetSdkVersion 'L' versionCode 1 versionName '1.0' } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro' } } productFlavors {} } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') // You must install or update the Support Repository through the SDK manager to use this dependency. // You must install or update the Support Repository through the SDK manager to use this dependency. compile 'com.android.support:support-v13:+' compile 'com.google.android.support:wearable:+' compile 'com.google.android.gms:play-services-wearable:+' }
I installed all the SDKs using the SDK manager, and I tried to process with a minimal, target and compiling SDK in the build.gradle file, setting them to 19, 20 or Android-L, but I have the same results - the program will not compile from - for these unrecognized classes. Any input is appreciated! Thanks
source share