I am trying to build React-Native from source on Android.
On running yarn install-android-jsc inside rn-tester package
It gives me this error:
Task :packages:rn-tester:android:app:buildCodegenCLI FAILED
`Execution failed for task
':packages:rn-tester:android:app:buildCodegenCLI'. A problem occurred
starting process 'command 'bash''
Does someone know how to fix this? I do have the pre-requisites installed.
Related
When I try to execute a flutter project in Android Studios, the emulator appears but nothing happens. Adn the only message that appears in the program is:
"BUILD FAILED in 18s
Finished with error: Gradle task assembleDebug failed with exit code 1"
What should I do?
There could be a number of reasons why your build failed. I would start by trying flutter clean
If that doesn't help, provide us with more details about your app such as plugins or your flutter doctor so we can better answer your question!
I did the following
react-native init project-name
yarn add react-navigation react-native-gesture-handler and
react-native run-android
The dependencies installed successfully but the app failed to build with the following errors
> Task :react-native-gesture-handler:packageDebugResources FAILED
17 actionable tasks: 8 executed, 9 up-to-date
> FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-gesture-handler:packageDebugResources'.
> Could not resolve all files for configuration ':react-native-gesture-handler:_
internal_aapt2_binary'.
> Failed to transform artifact 'aapt2-windows.jar (com.android.tools.build:aa
pt2:3.4.1-5326820)' to match attributes {artifactType=_internal-android-aapt2-bi
nary, org.gradle.usage=java-runtime-jars}.
> org.gradle.api.GradleException: Could not read path 'C:\Users\DevLewa\.g
radle\caches\transforms-2\files-2.1\3d408b3640f7dfba25695085d22596b0\aapt2-3.4.1
-5326820-windows'.
I have searched all through github issues but found no helping information, how do I resolve this, I have being on it since morning today.
Thanks
I had the same problem with some of my initialized projects using reac-native cli. it would be solved by running: react-native link in your project directory. I hope it would work for you as me.
If it was helpful please vote me up:)
I am new to React-Native and I am trying to use the Ignite boilerplate. I followed all the steps for building my first app but now I am stuck with and error and can't find the answer.
As the title says, the error is:
:react-native-i18n:processReleaseResources FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-i18n:processReleaseResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
I am using version 0.50.4 of react-native and version 2.0.1 of react-native-cli, and running on Ubuntu.
Anyone knows what the problem could be?
I setup a basic angular2 app in cordova, it runs fine in iOS but with android I'm getting build failed with an exception, I can run android fine in a basic cordova app.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/local/opt/android-sdk/build-tools/24.0.2/aapt'' finished with non-zero exit value 1
Error: /Users/username/Code/workshop/cordova/angular-2/MyApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
ok i resolved the issue which was caused by node_modules folder being too heavy for the emulator to launch, i cut a lot of fat from node_modules (i.e deleted dependencies and other fluff that wasn't needed) and increased the resources available to the avd.
things ran smooth after that :)
When trying to build my app
phonegap local build android
I have this issue :
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/xxxxxxxx/Library/Android/sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1
I have no idea of how to resolve this, since this problem is mostly encoutered by people developing their app in java.
Thanks in advance for your answers
I had same issue. It turned out to be that I had bad (or missed) some icon/splash-screen images (ie: platforms/android/res/drawable-hdpi etc) and other images.
You can check that runnning './gradlew --debug clean build' from your platforms/android directory. Search in the log for the ':processDebugResources FAILED' string and close to it the file-name that caused the problem. In my case it was 'año nuevo.png' (the 'ñ' caused the issue)
If that doesn't work, have a look at these other SO-questions, they may help too:
ionic build android failure - Execution failed for task processDebugResources
Cordova build android error Execution failed for task ':processDebugResources'
Android Studio build failed at "processDebugResources" when using 9-patch images
PS: Im using latest phonegap (6.3.0) and latest Android Studio (2.1.2)