ورود

View Full Version : مشکل در Gradle مربوط به Android Studio



haftasia
شنبه 20 تیر 1394, 01:42 صبح
سلام بعد از پیکربندی اولین پروژه در حین ساخت پروژه این ارور رو میده:




Failed to import Gradle project: Could not fetch model of type 'IdeaProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
A problem occurred configuring project ':MyApplication'.
A problem occurred configuring project ':MyApplication'.
Could not resolve all dependencies for configuration ':MyApplication:classpath'.
Could not resolve com.android.tools.build:gradle:0.5.+.
Required by:
MyApplicationProject222:MyApplication:unspecified
Failed to list versions for com.android.tools.build#gradle;0.5.+.
Could not list versions using M2 pattern 'http://repo1.maven.org/maven2/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'.
Could not GET 'http://repo1.maven.org/maven2/com/android/tools/build/gradle/'.
repo1.maven.org



این نکته رو هم بگم فایل های

all
bin
src

رو به این مسیر قبلان انتقال دادم

C:\Users\.....\.gradle\wrapper\dists\gradle-1.6-bin\72srdo3a5eb3bic159kar72vok

roboman78
شنبه 20 تیر 1394, 02:13 صبح
اون اول باید یکسری فایل به غیر از اونا که شما ریختی دان کنه
پس چیز پی ان رو روشن کن تا دان کنه

o0o0okay
شنبه 20 تیر 1394, 06:07 صبح
سلام بعد از پیکربندی اولین پروژه در حین ساخت پروژه این ارور رو میده:




Failed to import Gradle project: Could not fetch model of type 'IdeaProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
A problem occurred configuring project ':MyApplication'.
A problem occurred configuring project ':MyApplication'.
Could not resolve all dependencies for configuration ':MyApplication:classpath'.
Could not resolve com.android.tools.build:gradle:0.5.+.
Required by:
MyApplicationProject222:MyApplication:unspecified
Failed to list versions for com.android.tools.build#gradle;0.5.+.
Could not list versions using M2 pattern 'http://repo1.maven.org/maven2/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'.
Could not GET 'http://repo1.maven.org/maven2/com/android/tools/build/gradle/'.
repo1.maven.org



این نکته رو هم بگم فایل های

all
bin
src

رو به این مسیر قبلان انتقال دادم

C:\Users\.....\.gradle\wrapper\dists\gradle-1.6-bin\72srdo3a5eb3bic159kar72vok
گریدل انصافا خیلی رون و باحال، فقط مشکلش با ip ایران اینه که بعضی از مواردش بخاطر تحریم ها دانلود نمیشه. بخاطر همین موقع اپدیت و کامپایل و کلا کار با گریدل سعی کن با فیل_تر_شکن به اینترنت وصل بشی.