After running the app I am getting this > Task :app:processDebugResources FAILED
25 actionable tasks: 25 executed
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.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:C:\Users\Pallavi\React\Redux\android\app\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:14: AAPT: error: resource style/Theme.GFGPagination (aka com.redux:style/Theme.GFGPagination) 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 24s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
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.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:C:\Users\Pallavi\React\Redux\android\app\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:14: AAPT: error: resource style/Theme.GFGPagination (aka com.redux:style/Theme.GFGPagination) not found.
So I run the command in android i.e ./gradlew.bat installDebug then I got that error that I have mention in question
Related
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':ofbiz --load-data'.
Process 'command 'C:\Program Files\Java\jdk-17.0.2\bin\java.exe'' finished with non-zero exit value 1
Try:
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ofbiz --load-data'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:147)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
when i am trying build using gradle facing issue, any help appreciated.
`
Your issue is not clear. In windows devices try gradlew cleanAll loadAll ofbiz command to load data and run ofbiz. If your issue is due to java version, try Java 1.8 version.
Visit below link of OFBiz development guide for more help
https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide
After setup of react-native-cli and I have the run the app .I am getting this
What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:C:\Users\Pallavi\React\Redux\android\app\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:14: AAPT: error: resource style/Theme.GFGPagination (aka com.redux:style/Theme.GFGPagination) not found.
cd android //Navigate into the android folder from the root directory
./gradlew clean // Run this
Whenever I run ./gradlew buildForProd, it gives me this error. I'm using windows.
'.' is not recognized as an internal or external command,
operable program or batch file.
EDIT:
Thanks Mofi for the resources.
After running .\gradlew, this is what I got.
Starting a Gradle Daemon, 19 busy Daemons could not be reused, use --status for details
:buildForProd FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildForProd'.
> A problem occurred starting process 'command './gradlew''
* 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 5.0.
See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 12s
1 actionable task: 1 executed
when i run flutter run in my project, the compile failed. i got this code in verbose mode
ADMIN#ZIRCON-KH101 MINGW64 ~/Documents/android project/new/flutternewsapp-10/codecanyon-26536344-classic-flutter-news-app-best-for-news-blog-and-magazines/01. Flutter/classic_flutter_news
$ flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Target debug_android_application failed: FileSystemException: Creation failed, path = 'C:\Users\ADMIN\Documents\android project\new\flutternewsapp-10\codecanyon-26536344-classic-flutter-news-app-best-for-news-blog-and-magazines\01. Flutter\classic_flutter_news\build\app\intermediates\flutter\debug\flutter_assets\packages/cupertino_icons' (OS Error: The filename or extension is too long.
, errno = 206)
build failed.
FAILURE: Build failed with an exception.
* Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 882
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* 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 21s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 23.9s
Exception: Gradle task assembleDebug failed with exit code 1
how can i fix this issues cause i already run flutter packages get, flutter clean inside my project and pass my release to stable channel
Your File path is too long.
C:\Users\ADMIN\Documents\android project\new\flutternewsapp-10\codecanyon-26536344-classic-flutter-news-app-best-for-news-blog-and-magazines\01. Flutter\classic_flutter_news\build\app\intermediates\flutter\debug\flutter_assets\packages/cupertino_icons
this exceeds some limitations in compilers and some programs.
so simply move your project folder to something simple like C:\Projest\
also change the name of this folder to something shorter
codecanyon-26536344-classic-flutter-news-app-best-for-news-blog-and-magazines
Error when trying to deploy on Android, IOS works fine.
The error started when I added the PushNotification plugin.
:apkDebug FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':apkDebug'.
com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK LICENSE
File 1: /Users/antoniopereira/.gradle/caches/modules-2/files-2.1/com.google.gms/google-services/3.0.0/ee538ce9cf4148485e43017c5542202b8c78ff8e/google-services-3.0.0.jar
File 2: /Users/antoniopereira/.gradle/caches/modules-2/files-2.1/com.google.gms/google-services/3.0.0/ee538ce9cf4148485e43017c5542202b8c78ff8e/google-services-3.0.0.jar
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
I found the simple and already made solution of excludes:
packagingOptions {
exclude 'LICENSE'
}