توسط
takin
سلام
من تازه اندرید استدیوو نصب کردم
sdk هم کامله تموم پلتفرماش (از api 2 تا api 26) و در بخش SDK BUild - Tools
23.0.2 و 25.0.0 و 26.0.1 نصبه
ولی همش چند تا ارور میده
Error:Failed to resolve: com.android.support.test.espresso:espresso-core:2.0
Error:(27, 13) Failed to resolve: com.android.support:appcompat-v7:26.+
این دوتا ارورو میده
هرکاریم میکنم رفع نمیشه
اینم کد build.gradle ش . لطفا راهنمایی کنید
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.example.mohammad.myapplication"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espress' +
'o:espresso-core:2.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
testCompile 'junit:junit:4.12'
}
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .