llfbandit / app_links

Android App Links, Deep Links, iOs Universal Links and Custom URL schemes handler for Flutter.
https://pub.dev/packages/app_links
Apache License 2.0
176 stars 68 forks source link

Execution failed for task ':app_links:compileDebugJavaWithJavac' gradle build #8

Closed kiaxseventh closed 2 years ago

kiaxseventh commented 3 years ago

android build gradle has problen

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app_links:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':app_links:debugCompileClasspath'.
   > Could not find localbroadcastmanager-1.0.0.jar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/androidx/localbroadcastmanager/localbroadcastmanager/1.0.0/localbroadcastmanager-1.0.0.jar

* 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
The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility.
Building plugin app_links...
Running Gradle task 'assembleAarRelease'...

FAILURE: Build failed with an exception.

* What went wrong:
Task 'assembleAarRelease' not found in root project 'app_links'.

* Try:
Run gradlew tasks to get a list of available tasks. 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 805ms

Exception: The plugin app_links could not be built due to the issue above.
llfbandit commented 3 years ago

Please, ensure you have gradle plugin with at least version 3.5.0, cleanup your project, etc.

kiaxseventh commented 3 years ago

my gradle source is here :

buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
        google()
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
    delete rootProject.buildDir
}