React native Android build: app:processDebugResources - java

Iam completely new to building app in react-native and when i was building my app i get this error, i tried searching in google but couldn't find any results which is helpful so please kindly help me solve this.
This is the error i get when running:
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
:app:recordFilesBeforeBundleCommandDebug
:app:bundleDebugJsAndAssets SKIPPED
:app:generateBundledResourcesHashDebug
4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
:app:processDeb
ugManifest U
P-TO-DATE
:app:processDebugResources
Unknown source file : ERROR: Unable to open class file ...
roject\android\app\build\generated\source\r\debug\com\newapp\R.java: Permission denied
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\..\AppData\Local\Android\sdk\build-tools\23.0.1\aapt.exe'' finished with non-zero exit value 1

For me it helped to change the version of buildTools to:
buildToolsVersion "21.0.1"
You will find this setting inside the file app/build.gradle.

Related

How to solve AAPT2 error in android studio?

when I run my project with assembleDebug , I get this error
:app:mergeDebugResources
C:\Users\Deepan\Downloads\googleads-mobile-android-examples-
master\googleads-mobile-android-examples-master\java\admob\NativeAdvancedExample\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-sw600dp-v13\values-sw600dp-v13.xml: error: file not found.
Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
I got the same problem and moving entire project to another location where the path is shorter solved it. You also have a quite long path.
File values-sw600dp-v13.xml
is missing from values-sw600dp-v13 folder.
past the file in values-sw600dp-v13 and it should work.

Can't run my project error in "run" debug file included

am using last version of gluonhq also i try some other versions . my problem is when i try to run the project , if someone know the solve of it note that am using the demo version i got the following msg:
Executing external task 'run'...
:compileJava
:processResources
:classes
:compileDesktopJava UP-TO-DATE
:processDesktopResources UP-TO-DATE
:desktopClasses UP-TO-DATE
:run FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':run'.
Process 'command 'C:\Program Files\Java\jdk1.8.0_121\bin\java.exe'' finished with non-zero exit value -1073740791
The Debug log here

Ionic build android process exception error

,Hi to all, after running
cordova build --release android
i get this error:
* What went wrong:
Execution failed for task ':transformClassesWithMultidexlistForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1
I tried to find some fix in the internet but nothing works so i am open for any suggestions.
Thanks!
I have updated my jdk up to 1.8.0 and everything run smoothly :)

Android studio - Execution failed for task :app:transformclasseswithdexfordebug

I am a beginner and when I try to run "Hello world" app in emulator there is always one error and it states :
Error:Execution failed for task
':app:transformClassesWithMultidexlistForDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1
Everybody is saying that I should add: multiDexEnabled true, but it does not help at all. PLEASE HELP ME :) I would just like to view my app in emulator...
Thank you!!!
I had the same error and for me it was conflict of the support libaries.
Remove one of them, probably you have the same conflict.
Project and all dependencies libraries must infer to only one "android-support-v4.jar" or other, but only one.
I hope it will help.

error when including Pinterest SDK in Android

I am trying to include Pinterest android SDK in Android Studio, but I always see the following error message, can somebody help me out, thanks!
Error:Execution failed for task ':app:dexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2
I had the same issue. It's because the pinterest library has an ic_launcher.png in it and I had one myself obviously. Renaming my ic_launcher.png to launcher.png did the trick.

Categories

Resources