Execution failed for task ':app:processDebugResources'. React-Native-Cli setup in android - react-native-cli

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

Related

TeamCity and Allure folders error while building

I constantly get an error on TeamCity caused by Allure folders.
If I run the build with:
gradlew clean test
I get the error:
Execution failed for task ':clean'. org.gradle.api.UncheckedIOException: java.io.IOException: Unable to delete directory 'D:\BuildAgent\work{BUILD_NUMBER}\build'
Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.- D:\BuildAgent\work{BUILD_NUMBER}\build\allure-results
and if I run the build with:
gradlew test
I get the error:
Execution failed for task ':test'. org.gradle.api.GradleException: Could not read path 'D:\BuildAgent\work{BUILD_NUMBER}\build\allure-results\history'.
How can I solve it?
Did you check the permission on the path? Also seeing issues on my side when running tests with gradle-wrapper. Do you use docker?

Execution failed for task ':app:processDebugResources'. While Running the App

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

how can i fix this issue

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

Xcode command line build fails with "Failed to read entitlements"

My Jenkins (continues integration server) is failing with the error:
error: Failed to read entitlements from '/var/folders/gp/fxfq69kd26j160s85g6vjy6h0000gr/T/yMWJTWS2AJ/Payload/app.com.app'
Full output:
The following build commands failed:
CompileC /Users/jenkins/Library/Developer/Xcode/DerivedData/App-doozayqorsxatsbzlunnptqszxax/Build/Intermediates/rara.build/Production-iphoneos/rara.build/Objects-normal/armv7/RRArtworkView.o
app/RRArtworkView.m normal armv7 objective-c
com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Poduct build
dir:
/Users/jenkins/Library/Developer/Xcode/DerivedData/app-doozayqorsxatsbzlunnptqszxax/Build/Products/Production-iphoneos
xcrun via /usr/bin/xcrun (xcrun) DEVELOPER_DIR = '/Developer' via
'/usr/share/xcode-select/xcode_dir_path' Database Key is:
PackageApplication_/Developer_iphoneos Cache version is '1'
Lookup resolved in
'/var/folders/gp/fxfq69kd26j160s85g6vjy6h0000gr/T/xcrun_db' :
'/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication'
error: Failed to read entitlements from
'/var/folders/gp/fxfq69kd26j160s85g6vjy6h0000gr/T/yMWJTWS2AJ/Payload/app.com.app'
Build "app" failed Build step 'Execute shell' marked build as failure
It build fine form the IDE and will install on the device.
System info:
Xcode v4.3.2
The rather cryptic message:
Failed to read entitlements[...]
Is cause by Xcode not archiving the app correctly, this is normally caused by:
Having "Skip Install" set to NO
Have header file (.h) copied to a public folder in the build phase
See the question:
Compile, Build or Archive problems with Xcode 4 (and dependancies)
For a detailed explanation of these issues.

I get an IOException when building the Roofline Tool. Why?

I currently get the error below trying to run roofline. It would be nice if any of you could help me out getting this up and running in my new environment?
bravegag#bravegag-MacBookPro:/opt/roofline/tool$ ./gradlew
FAILURE: Build failed with an exception.
What went wrong:
Could not open task artifact state cache (/opt/roofline/tool/.gradle/1.0-milestone-8/taskArtifacts).
java.io.IOException: No such file or directory
BUILD FAILED
==> You have to have write access for the directory you are trying to build in.
You have to have write access for the directory you are trying to build in

Resources