Flutter Android Gradle Plugin ändert die Version nichtAndroid

Forum für diejenigen, die für Android programmieren
Anonymous
 Flutter Android Gradle Plugin ändert die Version nicht

Post by Anonymous »

Ich brauche deine Hilfe ... selbst Chatgpt kann es nicht lösen ... meine Flutter -App läuft nicht auf Android. Einige Pakete erfordern ADP 8.3.0, und ich kann es nicht ändern.

Code: Select all

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
}
Und ich haben es getan:
Flattern Clean
RM -rf ~/.gradle/Caches
RM -rf ~/.gradle/Wrapper
rm -rf android/.gradle
rm -rf Android/Build
RM -rf Android/App/Build
./gradlew Clean
Flutter Pub Get
./gradlew Build
Wenn ich die letzte ausführte, zeigt ich die ADP -Version als 7.3.0. Ich verwende Android Studio LadyBug.
Hier ist der Fehler: < /p>

Code: Select all

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.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post