بنده مدتی هست درگیر راه اندازی اندروید استودیو هستم نزدیک 60 گیگ sdk و فایل های جاوا دانلود کردم
مثلا رایج ترین خطا تو تصویر هست از جاوا 1.8 یا 21 حتی 24 استفاده میکنم به نسخه پلاگین com.android.application گیر میده میگه گریدل 8 موجود نیست در حالیکه همه نسخه ها رو دانلود کردم پروژه و با جاوا نسخه min 24 ایجاد کردم بدون دستکاری فقط کانفیگ گریدل رو زدم تا بالا بیاد امولاتور رو بالا میارم ولی زمان کامپایل این خطا رو میده ممکنه راهنمایی کنید ؟ ممنون از شما
ویرایش :::::::: پس از نوشتن این سوال مدت ها بود که اکثریت ف ش ها رو استفاده کرده بودم اما این دفعه از پروتون استفاده کردم به شکل عجبیبی اون همه خطا رفع شدن واقعا چقدر مصیبت داریم خطاهایی که نشون میداد همه مربوط به ایرادات نرم افزاری و یا نسخه های گریدل بودن اما همون خطا ها با تغییر آی پی حل شدن
کدهای gradle-wrapper
#Mon Mar 31 23:06:08 IRST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
************************************************************************************
libs.version.toml
[versions]
agp = "8.0"
junit = "4.13.2"
junitVersion = "1.1.5"
espressoCore = "3.5.1"
appcompat = "1.6.1"
material = "1.10.0"
activity = "1.8.0"
constraintlayout = "2.1.4"
[libraries]
junit = { group = "junit", name = "junit", version.ref = "junit" }
ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
*************************************************************************************************************
build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
}
***********************************************************************************************************
gragle.properties
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. For more details, visit
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
*****************************************************************************************************
setting.gradle
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "Mtestt"
include ':app'
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید.
اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .
توجه: strong> مطلب ارسالی شما پس از تایید مدیریت برای همه قابل رویت خواهد بود.
سوال
arash2016 0
سلام و عرض ادب خدمت اساتید محترم
بنده مدتی هست درگیر راه اندازی اندروید استودیو هستم نزدیک 60 گیگ sdk و فایل های جاوا دانلود کردم
مثلا رایج ترین خطا تو تصویر هست از جاوا 1.8 یا 21 حتی 24 استفاده میکنم به نسخه پلاگین com.android.application گیر میده میگه گریدل 8 موجود نیست در حالیکه همه نسخه ها رو دانلود کردم پروژه و با جاوا نسخه min 24 ایجاد کردم بدون دستکاری فقط کانفیگ گریدل رو زدم تا بالا بیاد امولاتور رو بالا میارم ولی زمان کامپایل این خطا رو میده ممکنه راهنمایی کنید ؟ ممنون از شما
ویرایش :::::::: پس از نوشتن این سوال مدت ها بود که اکثریت ف ش ها رو استفاده کرده بودم اما این دفعه از پروتون استفاده کردم به شکل عجبیبی اون همه خطا رفع شدن واقعا چقدر مصیبت داریم خطاهایی که نشون میداد همه مربوط به ایرادات نرم افزاری و یا نسخه های گریدل بودن اما همون خطا ها با تغییر آی پی حل شدن
کدهای gradle-wrapper #Mon Mar 31 23:06:08 IRST 2025 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists ************************************************************************************ libs.version.toml [versions] agp = "8.0" junit = "4.13.2" junitVersion = "1.1.5" espressoCore = "3.5.1" appcompat = "1.6.1" material = "1.10.0" activity = "1.8.0" constraintlayout = "2.1.4" [libraries] junit = { group = "junit", name = "junit", version.ref = "junit" } ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" } material = { group = "com.google.android.material", name = "material", version.ref = "material" } activity = { group = "androidx.activity", name = "activity", version.ref = "activity" } constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" } [plugins] android-application = { id = "com.android.application", version.ref = "agp" } ************************************************************************************************************* build.gradle // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { alias(libs.plugins.android.application) apply false } *********************************************************************************************************** gragle.properties # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. For more details, visit # https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects # org.gradle.parallel=true # AndroidX package structure to make it clearer which packages are bundled with the # Android operating system, and which are packaged with your app's APK # https://developer.android.com/topic/libraries/support-library/androidx-rn android.useAndroidX=true # Enables namespacing of each library's R class so that its R class includes only the # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library android.nonTransitiveRClass=true ***************************************************************************************************** setting.gradle pluginManagement { repositories { google { content { includeGroupByRegex("com\\.android.*") includeGroupByRegex("com\\.google.*") includeGroupByRegex("androidx.*") } } mavenCentral() gradlePluginPortal() } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() } } rootProject.name = "Mtestt" include ':app'
لینک ارسال
به اشتراک گذاری در سایت های دیگر
0 پاسخ به این سوال تاکنون داده شده است
ارسالهای توصیه شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .
توجه: strong> مطلب ارسالی شما پس از تایید مدیریت برای همه قابل رویت خواهد بود.