مشکل در اجرای اندروید استودیو و کمک به رفع خطا ها

سلام

من برای اولین بار از اندروید استودیو میخواستم استفاده کنم که با مشکلی مواجه شدم و نتونستم جایی پاسخی براش پیدا کنم.

فکر نمی کنم از نصب sdk ها باشه چون تقریبا درست انجام دادم

اندروید استودیو من 3.1.3 هست

ارورهایی که میده اینهاست:

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:design:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:support-vector-drawable:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support.test:runner:1.0.1.
Open File
Show Details

Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support.test.espresso:espresso-core:3.0.1.
Open File
Show Details

Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support:appcompat-v7:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support:design:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support:support-vector-drawable:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.support:appcompat-v7:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.support:design:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.support:support-vector-drawable:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve junit:junit:4.12.
Open File
Show Details

Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.support:appcompat-v7:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.support:design:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.support:support-vector-drawable:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.support:appcompat-v7:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.support:design:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.support:support-vector-drawable:27.0.2.
Open File
Show Details

Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve junit:junit:4.12.
Open File
Show Details

لطفا کمک کنید

پاسخ ها

sokanacademy forum
کاربر سکان آکادمی 6 سال پیش

سلام وقت بخیر

پروکسی خودتون رو فعال کنید و مجددا پروژتون رو سینک کنید.

در صورتی که راهکار بالا جوابگو نبود مراحل زیر را انجام دهید

وارد settings شوید، در لینوکس از منوی file (ویندوز و مک هم شبیه هستند)
در کادر جست‌جو عبارت proxy وارد کنید تا صفحه http proxy آورده شود
گزینه Manual proxy configuration انتخاب کنید سپس http
در مقابل Host name بنویسید fodev.org و در مقابل Port number پورت گفته شده 8118 وارد کنید

به انتهای فایل gradle.properties پروژتون هم این عبارت رو اضافه کنید

systemProp.http.proxyHost=fodev.org
systemProp.http.proxyPort=8118
systemProp.https.proxyHost=fodev.org
systemProp.https.proxyPort=8118

مجددا پروژتون رو سینک کنید مشکلتون برطرف میشه

منبع : https://github.com/freedomofdevelopers/fod

sokanacademy forum
کاربر سکان آکادمی 4 سال پیش

سلام

میخواستم ازتون بسیار تشکر کنم واقعا ، من خسته شده بودم انقدر دنبالش گشتم.

بازم ممنون.

sokanacademy forum
کاربر سکان آکادمی 3 سال پیش

سلام من تمام کارهایی که گفتین رو انجام دادم ولی متاسفانه باز خطا دارم

خطایUnable to resolve dependecy

Open file

Show detilis

چیکار کنم؟

online-support-icon