###前提・実現したいこと
Androidstudioを使用してAndroidWearでHelloWeardと表示させるアプリケーションを作成しようとしております。
###発生している問題・エラーメッセージ
最初にバージョンやレイアウト等を選択してビルドした際に以下のようなエラーが出てうまく動かない状態になってしまいます。
初歩的な質問で申し訳ありませんがよろしくお願いいたします。
エラーメッセージ
Error:A problem occurred configuring project ':mobile'.
Could not resolve all dependencies for configuration ':mobile:_debugCompile'.
A problem occurred configuring project ':wear'.
> Could not find support-v4.jar (com.android.support:support-v4:24.0.0). Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-v4/24.0.0/support-v4-24.0.0.jar
###試したこと
Webの情報を受けてSDKのバージョンを確認して,Invalidate and Restartをしましたが動きません。
###追加情報
gradle(Mobile)
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig { applicationId "com.example.アプリケーションのID" minSdkVersion 21 targetSdkVersion 25 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
wearApp project(':wear')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.google.android.gms:play-services:10.0.1'
}
gradle(wear)
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig { applicationId "com.example.アプリケーションのID" minSdkVersion 21 targetSdkVersion 25 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:2.0.0-alpha3'
compile 'com.google.android.gms:play-services-wearable:10.0.1'
}
回答1件
あなたの回答
tips
プレビュー