PDA

View Full Version : مشکل گریدل اندروید استودیو 2.3



hharddy
سه شنبه 06 تیر 1396, 13:01 عصر
سلام من روی یکی از سیستم ها اندروید استودیو و از 2.2 به نسخه اخر 2.3 اپدیت کردم ولی گریدل سینک نمیشه و خطای

Failed to find build tools revision 26.0.0
میده در حالیکه نسخه 26.0.0 نصب هست با نسخه های دیگه هم امتحان کردم همین خطا و میده و با پاک کردن بیلد تولز ها و دانلود کردشون از داخل اندروید استودیو بازم مشکل حل نشد.
چند روزه که کلا درگیرم دوستان اگر راه حلی دارن ممنون میشم کمک کنن.
گریدل ها بصورت زیر هستند.




apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "atys.myapplication"
minSdkVersion 16
targetSdkVersion 25
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.espre sso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}




// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}


dependencies {
}

#root#
پنج شنبه 08 تیر 1396, 20:16 عصر
شاید بی ارتباط باشه ولی نسخه com.android.tools.build:gradle من ۲.۳.۳ هست شما هم تغییر بدید.

hharddy
شنبه 10 تیر 1396, 12:10 عصر
شاید بی ارتباط باشه ولی نسخه com.android.tools.build:gradle من ۲.۳.۳ هست شما هم تغییر بدید.

ممنون مشکلم حل , با چند نفر صحبت کردم کلا نسخه 2.3 اندروید استودیو مثل اینکه اولش یکم مشکل داره, با چند بار آنیستال کردن درست شد.