-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
I tried to build a haxeflixel project and it gives me this error at the gradle part of the compiling process.
> Task :app:checkDebugAarMetadata FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Configuration `:app:debugRuntimeClasspath` contains AndroidX dependencies, but the `android.useAndroidX` property is not enabled, which may cause runtime issues.
Set `android.useAndroidX=true` in the `gradle.properties` file and retry.
The following AndroidX dependencies are detected:
:app:debugRuntimeClasspath -> project :deps:androidtools -> androidx.core:core:1.2.0
:app:debugRuntimeClasspath -> project :deps:androidtools -> androidx.core:core:1.2.0 -> androidx.annotation:annotation:1.1.0
:app:debugRuntimeClasspath -> project :deps:androidtools -> androidx.core:core:1.2.0 -> androidx.lifecycle:lifecycle-runtime:2.0.0
:app:debugRuntimeClasspath -> project :deps:androidtools -> androidx.core:core:1.2.0 -> androidx.lifecycle:lifecycle-runtime:2.0.0 -> androidx.lifecycle:lifecycle-common:2.0.0
:app:debugRuntimeClasspath -> project :deps:androidtools -> androidx.core:core:1.2.0 -> androidx.lifecycle:lifecycle-runtime:2.0.0 -> androidx.arch.core:core-common:2.0.0
:app:debugRuntimeClasspath -> project :deps:androidtools -> androidx.core:core:1.2.0 -> androidx.versionedparcelable:versionedparcelable:1.1.0
:app:debugRuntimeClasspath -> project :deps:androidtools -> androidx.core:core:1.2.0 -> androidx.collection:collection:1.0.0
(also I have tried to set useAndroidX in my project.xml but that didn't change anything)
I currently use these to build android projects:
Java: jdk-17
Gradle: 7.4.2
Gradle-plugin: 7.3.1
<define name="ANDROID_SDK" value="C:\Users\Owner\AppData\Local\Android\Sdk" />
<define name="ANDROID_NDK_ROOT" value="C:\Users\Owner\AppData\Local\Android\Sdk\ndk\21.4.7075529" />
Any ideas as to what the problem could be is appreciated.
Metadata
Metadata
Assignees
Labels
No labels