Execution failed for task :processDebugResources [ react-native ] - javascript

I present the following error when running react-native run-android
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 15.042 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
Do you have any idea how to solve this problem?
Thanks!!

Related

error while building APK in android studio for flutter project

Building with sound null safety
Running Gradle task 'assembleRelease'...
Parameter format not correct -
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:lintVitalRelease'.
Could not delete old C:\Users\Best Computers\StudioProjects\shoes\build\app\reports\lint-results-release-fatal.html
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 2m 49s
Running Gradle task 'assembleRelease'... 172.1s
Gradle task assembleRelease failed with exit code 1
Process finished with exit code 1
You just need to add checkReleaseBuilds to false in your build.gradle. It will be look like.
android {
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}
Or can you try File > Invalidate Caches/Restart

How do I build app with :app:bundleReleaseJsAndAssets error?

I need help, I need to fix this error when building apk using gradlew assembleRelease, the configuration is successful, but when executing at 70% there throws an error:
> Task :app:bundleReleaseJsAndAssets_SentryUpload FAILED
error: An organization slug is required (provide with --org)
Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
> Process 'command 'cmd'' 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets_SentryUpload'.
> Process 'command 'cmd'' 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.
For info, I tried building without bundleReleasejsAssets, but when I install the app on my phone, App won"t start it is instantly crashing, just can't open, I think this bundleReleaseJsAssets needs to be added, or my app won't run.

How can i solve the following error while run the app : Could not resolve all files for configuration?

FAILURE: Build failed with an exception.
What went wrong:
Could not resolve all files for configuration ':react-native-camera:debugCompileClasspath'.
Could not find play-services-basement.aar (com.google.android.gms:play-services-basement:15.0.1).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-basement/15.0.1/play-services-basement-15.0.1.aar
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 0s
12 actionable tasks: 1 executed, 11 up-to-date
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
what is the build command you are running. as it says adding --stacktrace to that may help. something like (assuming package.json/npm etc) - npm run build --stacktrace or in the scripts - <BUILD-PACKAGE> --stacktrace [options]
package.json:
{
"scripts": {
"makeItSo": "<BUILD-PACKAGE> --stacktrace [options]"
}
}

Android apk Can not build with react-native-image-picker

This is the error while building apk react native 0.51
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Error: A library uses the same package as this project: com.imagepicker
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4 mins 51.11 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
here image of error

Error in building android app using Phonegap

For some reason, my android phonegap build fails every time I try to run it.I can’t seem to figure out what the problem is.
I am using the latest version of Cordova (5.3.3) and downloaded the correct SDK for android using Android studio (I think).
Any ideas what I’m doing wrong?
Here are my CLI logs:
FAILURE:
Build failed with an exception.
* What went wrong:
Execution failed for task ':prepareDebugDependencies'.
>
javax.xml.xpath.XPathExpressionException: org.xml.sax.SAXParseException; lineNumber: 41; columnNumber: 94; The prefix "tools" for attribute "tools:overrideLibrary" associated with an element type "uses-sdk" is not bound.
* Try:
Run with --stacktrace
option to get the stack trace. Run with --info
or
--debug
option to get more log output.
BUILD FAILED
Total time: 4.325 secs
/Users/macuser/Desktop/bacon copy/bacontest/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /Users/macuser/Desktop/bacon copy/bacontest/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/macuser/Desktop/bacon copy/bacontest/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error: /Users/macuser/Desktop/bacon copy/bacontest/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: /Users/macuser/Desktop/bacon copy/bacontest/platforms/android/cordova/build: Command failed with exit code 1
at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:817:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:
5)

Categories