Мне нужна твоя помощь ... даже ЧАТГПТ не может ее решить ... мое приложение Flutter не работает на Android. Некоторые пакеты требуют ADP 8.3.0, и я не могу его изменить.buildscript {
ext.kotlin_version = '1.8.22'
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:8.3.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22"
classpath 'com.google.gms:google-services:4.4.1'
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
и я сделал:
Flutter Clean
rm -rf ~/.gradle/caches
rm -rf ~/.gradle/warper
rm -rf android/.gradle
rm -rf android/build
rm -rf android/app/build
./gradlew clean
fluther pub Get
./gradlew build < /p>
Когда я запускаю последнюю, она показывает версию ADP как 7.3.0, я использую Android Studio Ladybug. < /p>
Вот ошибка: < /p>
mac@192 android % ./gradlew build
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34
This Android Gradle plugin (7.3.0) was tested up to compileSdk = 33
This warning can be suppressed by adding
android.suppressUnsupportedCompileSdk=34
to this project's gradle.properties
The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 34
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34
This Android Gradle plugin (7.3.0) was tested up to compileSdk = 33
This warning can be suppressed by adding
android.suppressUnsupportedCompileSdk=34
to this project's gradle.properties
The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 34
> Task :android_intent_plus:parseDebugLocalResources FAILED
FAILURE: Build failed with an exception.
Подробнее здесь: https://stackoverflow.com/questions/794 ... he-version