2048 icon indicating copy to clipboard operation
2048 copied to clipboard

Can't build android APK or AAR.

Open Kesanov opened this issue 4 years ago • 0 comments

I have added targetAll() into build.gradle.kts, and ran gradlew installAndroidDebug in root folder. That failed with:

> Task :android:processDebugMainManifest
[androidx.vectordrawable:vectordrawable-animated:1.0.0] E:\Users\Me\.gradle\caches\transforms-3\ad47d5d093ee26185217a5f91dd5dc1f\transformed\vectordrawable-animated-1.0.0\AndroidManifest.xml Warning:
        Package name 'androidx.vectordrawable' used in: androidx.vectordrawable:vectordrawable-animated:1.0.0, androidx.vectordrawable:vectordrawable:1.0.0.

> Task :android:processDebugResources FAILED
> Task :installAndroidDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':android:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     D:\2048\build\platforms\android\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:2: AAPT: error: attribute 'package' in <manifest> tag is not a valid Android package name: 'io.github.rezmike.2048'.

     D:\2048\build\platforms\android\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:28: AAPT: error: attribute 'android:name' in <activity> tag must be a valid Java class name.


* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

I also tested gradlew bundleAndroid and it also failed:

> Task :bundleAndroid FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Task 'bundleDebugAar' not found in project ':android'. Some candidates are: 'bundleDebug'.

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

Kesanov avatar Mar 31 '21 10:03 Kesanov