Armandorobleee
05/31/2024, 4:35 AMNatan Lucena
06/02/2024, 6:32 PMSUHAS SK
06/05/2024, 4:55 AMFailed to apply plugin 'com.android.internal.application'.> Failed to apply plugin class 'org.gradle.language.base.plugins.LifecycleBasePlugin'. > Cannot add task 'clean' as a task with that name already exists. * Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.BUILD FAILED in 6s
SUHAS SK
06/05/2024, 4:55 AMOleg Nenashev
06/07/2024, 7:02 AMPeter
06/07/2024, 7:52 AMArmandorobleee
06/08/2024, 11:31 PMArmandorobleee
06/09/2024, 12:39 AMSidiq Nkohla
06/09/2024, 8:39 PMreactormonk
06/18/2024, 11:09 AMapp/src/main/jniLibs/arm64-v8a/
and app/src/main/jniLibs/armeabi-v7a/
respectively. Can I ask gradle directly what it found?Mairo Obiera
06/25/2024, 12:00 PMChristhian Vaca
06/26/2024, 4:37 AMCould not move temporary workspace (C:\Users\chris\.gradle\caches\transforms-4\90473f0ffd54df0b03fc710261b4eea1-a0bb9cac-a643-40a5-86a2-e4a6ad939392) to immutable location (C:\Users\chris\.gradle\caches\transforms-4\90473f0ffd54df0b03fc710261b4eea1)
Christhian Vaca
06/26/2024, 4:37 AMpavan kumar
06/27/2024, 10:48 PMМистер Красворп
06/29/2024, 5:54 PMwei deng
07/01/2024, 3:24 AMwei deng
07/01/2024, 3:24 AMRitesh Singh
07/03/2024, 7:41 AM* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':flutter_native_timezone' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50
I understand this issue is about flutter_native_timezone using 1.3.50 and my project needs Kotlin Gradle plugin version 1.5.20 or higher. But earlier in imperative approach this was not coming for the same version of kotlin i.e. 1.8.0. The syntax which was used earlier was in module level build.gradle
buildscript {
ext.kotlin_version = '1.8.0'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Which after conversion was written in settings.gradle
plugins {
id 'dev.flutter.flutter-plugin-loader' version '1.0.0'
id 'com.android.application' version '7.4.2' apply false
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false // here
id 'com.google.gms.google-services' version '4.4.0' apply false
id 'com.google.firebase.crashlytics' version '2.9.9' apply false
}
Now what I actually want to do is override kotlin gradle plugin for all the dependencies. I tried using resolution strategy in app level gradle:
configurations.all {
resolutionStrategy {
force 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0'
}
}
But this doesn't seems to work. Any help will be great.street ride
07/05/2024, 12:59 PMstreet ride
07/05/2024, 1:01 PMPaul
07/06/2024, 6:24 PMPeter
07/12/2024, 9:08 AMJosé Angel Alvarez Abraira
07/12/2024, 1:58 PM* Where:
Build file '/home/jose/WebstormProjects/GreenPort/app_surikat_firebase/node_modules/@react-native/gradle-plugin/build.gradle.kts' line: 10
* What went wrong:
Script compilation errors:
Line 10: import org.gradle.configurationcache.extensions.serviceOf
^ Unresolved reference: serviceOf
Line 54: serviceOf<ModuleRegistry>()
^ Unresolved reference: serviceOf
2 errors
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.
Abba Al'ameen
07/15/2024, 4:30 PM杨维
07/16/2024, 1:49 AMdef optimizedExternalNativeBuildTask(project) {
project.afterEvaluate {
// optimized build
project.android.libraryVariants.all { variant ->
...
}
}
}
But I get the error:
Could not get unknown property 'libraryVariants' for extension 'android' of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension.
Is the new gradle version not supported this property,what property should I use?
Even though I delete this code,it still display the same error. Can anyone help me?Katlego Joseph
07/16/2024, 9:48 AMplugins {
id "com.android.application"
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
id 'com.google.gms.google-services' version '4.4.2' apply false
// id 'org.jetbrains.Kotlin.android'
}
def localProperties = new Properties()
def localPropertiesFile = rootProject.file("local.properties")
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader("UTF-8") { reader ->
localProperties.load(reader)
}
}
def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
if (flutterVersionCode == null) {
flutterVersionCode = "1"
}
def flutterVersionName = localProperties.getProperty("flutter.versionName")
if (flutterVersionName == null) {
flutterVersionName = "1.0"
}
//apply plugin: 'com.google.gms.google-services'
android {
namespace = "com.example.taxi1_app"
compileSdk = 35//flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
defaultConfig {
// TODO: Specify your own unique Application ID (<https://developer.android.com/studio/build/application-id.html>).
applicationId = "com.example.taxi1_app"
// You can update the following values to match your application needs.
// For more information, see: <https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration>.
minSdk 24
targetSdk = 35//flutter.targetSdkVersion
versionCode = flutterVersionCode.toInteger()
versionName = flutterVersionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.debug
}
}
}
flutter {
source = "../.."
}
can someone help me I get an error on new properties()heihei chen
07/19/2024, 10:50 AMjamal
07/19/2024, 6:05 PMColton Idle
07/23/2024, 5:11 PMCarl WSF
07/23/2024, 8:22 PM