Cordova Issue "Execution failed for task ':app:mergeDebugResources'." - android

I am getting below issue during "cordova build":
My Android version:8.1.0
Cordova Version:Latest
Gradle Version:4.2
Getting it due to onesignal plugin but it gone when I remove plugin
?? actionable tasks: ? executed, ?? up-to-date
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
C:\Users\AJ\Desktop\blogapp\platforms\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v२३\values-v२३.xml: error: invalid configuration 'v२३'.
* 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

I abled to fix the issue my reinstalling cordova and android studio, This issue occur because of wrongly configured SDKs

Related

BUILD FAILED in Flutter Project

Launching lib\main.dart on Mi A1 in debug mode...
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
C:\Users\anand.gradle\caches\transforms-2\files-2.1\9d2250f2160023e86dcf90b2c8c1bc31\core-1.7.0-beta01\res\values\values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
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 1m 57s
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 admob_flutter...
√ Built build\app\outputs\repo.
Building plugin agora_rtc_engine...
FAILURE: Build failed with an exception.
Where:
Build file 'C:\src\flutter.pub-cache\hosted\pub.dartlang.org\agora_rtc_engine-4.0.7\android\build.gradle' line: 29
What went wrong:
A problem occurred evaluating root project 'agora_rtc_engine'.
Plugin with id 'com.android.library' not found.
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 2s
Exception: The plugin agora_rtc_engine could not be built due to the issue above.
Exited (sigterm)

Flutter App fails to run on physical android device with com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable error

This is the output that I get from my run log:
Launching lib\main.dart on SM G965U in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> java.lang.OutOfMemoryError (no error message)
* 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 25s
Exception: Gradle task assembleDebug failed with exit code 1
Can someone help me understand what is going on?
Also, surprisingly, running the same code on an emulator doesn't have any issues at all and builds fine.
Let me know If I should share any specific files to help answer my question!
I figured it out.
The gradle I was using was unsupported. I downgraded my gradle to 3.5.0 and it worked!!

Getting error while trying to build with flutter_local_notification plugin in my flutter app

Launching lib\main.dart on sdk gphone x86 arm in debug mode...
lib\main.dart
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
C:\Users\shibl\Desktop\project-3\myTodo\android\app\src\main\AndroidManifest.xml:44:13-51:23: AAPT: error: unexpected element found in .
C:\Users\shibl\Desktop\project-3\myTodo\android\app\src\main\AndroidManifest.xml:52:12-109: AAPT: error: unexpected element <receiver> found in <manifest><application><activity>.
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 15s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin flutter_local_notifications...
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\flutter_local_notifications-3.0.1+2\android\build.gradle' line: 22
What went wrong:
A problem occurred evaluating root project 'flutter_local_notifications'.
Failed to apply plugin [id 'com.android.internal.version-check']
Minimum supported Gradle version is 5.6.4. Current version is 5.6.2. If using the gradle wrapper, try editing the distributionUrl in C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\flutter_local_notifications-3.0.1+2\android\gradle\wrapper\gradle-wrapper.properties to gradle-5.6.4-all.zip
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 2s
Exception: The plugin flutter_local_notifications could not be built due to the issue above.
Exited (sigterm)
I had this same error, and I resolved it by placing the receiver syntax inside the application tag in AndroidManifest.xml.

Flutter Error : Build failed with an exception

At first when I installed and ran the Android Studio the app ran perfectly, then after two days for some reason this is happening. Please help me fix this. Thanks
Launching lib\main.dart on GM1910 in debug mode...
Running Gradle task 'assembleDebug'...
Not resetting hidden file - C:\Users\zahin\AndroidStudioProjects\project1\build\app\intermediates\flutter\debug\flutter_assets\assets\ss\Thumbs.db
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:signingConfigWriterDebug'.
> java.nio.file.AccessDeniedException: C:\Users\zahin\AndroidStudioProjects\project1\build\app\intermediates\signing_config\debug\out\signing-config.json
* 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 4s
Exception: Gradle task assembleDebug failed with exit code 1
Use flutter clean or remove the build folder on your project root then try again.

What is the real fix for this issue while building apk release in ionic?

I've got an issue while building apk --release in ionic. Gradle daemon is installed.What is the real fix for this issue while building apk release in ionic ?
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> Android resource linking failed
23 actionable tasks: 1 executed, 22 up-to-date
C:\ES.eWarrant\eWarrant\platforms\android\app\src\main\res\xml\authenticator.xml:2: AAPT: error: resource mipmap/icon (aka io.ionic.starter:mipmap/icon) not found.
error: failed linking file resources.
* 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 10s
C:\ES.eWarrant\eWarrant\platforms\android\gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> Android resource linking failed
C:\ES.eWarrant\eWarrant\platforms\android\app\src\main\res\xml\authenticator.xml:2: AAPT: error: resource mipmap/icon (aka io.ionic.starter:mipmap/icon) not found.
error: failed linking file resources.
* 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 10s
[ERROR] An error occurred while running subprocess cordova.
cordova build android --release exited with exit code 1.

Categories

Resources