私は最近mindSdkVersionを17に変更し、targetSdkVersionを21に変更し、多くのエラーが発生しました。私はそれらのいくつかを修正したが、私はこれを1つずつ修正することはできません:私はMac上でAndroidのメーカーを使用していると私はAndroidのサポートリポジトリを持って解決できませんでした:com.android.support:appcompat-v7:21.0.1
Error:(28, 13) Failed to resolve: com.android.support:appcompat-v7:21.0.1
。
私のbuild.gradleファイル:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "24.0.3"
defaultConfig {
applicationId "com.swit.sedamaker"
minSdkVersion 17
targetSdkVersion 21
versionCode 2
versionName "1.01"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
compile 'com.android.support:appcompat-v7:21.0.1'
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
}
私はまだこのエラーを受けています –
@AmirAmini、あなたは21に 'targetSdkVersion 21'を残しておきたいのですが、 – W4R10CK
23にアップグレードしようとしました。今はエミュレータにインストールできません。それは私のアプリの別のバージョンがインストールされていると言いますが、私はこのエミュレータで私のアプリケーションを実行しているのは初めてです。 –