I am using IONIC - ANGULAR - CORDOBA
ionic-angular-cordoba
enter image description here
At the moment of generating the APP bundle (AAB) I have the following error:
gradlew bundle
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
Configure project :app
An exception occurred while trying to find the Android build tools.
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
Where:
Script 'D:\angular\proyectos\opticks\trunk\latin-pedidos-offline\mobile\platforms\android\CordovaLib\cordova.gradle' line: 112
What went wrong:
A problem occurred evaluating project ':app'.
Unable to determine Android SDK directory.
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:
A problem occurred configuring project ':app'.
compileSdkVersion is not specified. Please add it to build.gradle
BUILD FAILED in 12s
Can someone help me, Thanks!
Related
I just installed the firebase messaging service on my react native application, after installing the module I get this error when compiling :`FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
Where:
Build file '/home/fredy/Bureau/monapp/node_modules/#react-native-firebase/messaging/android/build.gradle' line: 75
What went wrong:
A problem occurred evaluating project ':#react-native-firebase_messaging'.
No signature of method: firebase_json_c54o9pv7otjdf4v6o99zlwlkv$_run_closure1.doCall() is applicable for argument types: (String, Boolean) values: [messaging_auto_init_enabled, true]
Possible solutions: doCall(java.lang.Object), findAll(), findAll()
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:
A problem occurred configuring project ':#react-native-firebase_messaging'.
compileSdkVersion is not specified.
`
help me please
Try to update all your #react-native-firebase/ modules in your package.json.
Then npm i and build again.
I'm trying to build my android project but I'm facing a configuration error.
Previously I built an app bundle, but after that, I'm receiving the following error.
I already deleted node_nodules and tried "yarn install" but the error persist.
D:\ReactNative\Mapin\android>gradlew assembleRelease
Starting a Gradle Daemon, 10 stopped Daemons could not be reused, use --status for details
FAILURE: Build failed with an exception.
* Where:
Script 'D:\ReactNative\Mapin\node_modules\#react-native-community\cli-platform-android\native_modules.gradle' line: 206
* What went wrong:
A problem occurred evaluating script.
> React Native CLI failed to determine Android project configuration. This is likely due to misconfiguration. Config output:
[root:D:\ReactNative\Mapin\android, reactNativePath:D:\ReactNative\Mapin\node_modules\react-native, dependencies:[:], commands:[], assets:[], platforms:[:], haste:[providesModuleNodeModules:[], platforms:[]], project:[:]]
* 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 15s
Fixed follow the following:
yarn add #react-native-community/cli-platform-android#3.0.3
yarn add react-native#0.61.5
Removed "--quiet" from npx.cmd in native_modules.gradle
cd android && gradlew clean
native_modules.gradle can be found in:
${PROJECT_FOLDER}/node_modules/#react-native-community/cli-platform-android/native_modules.gradle
while running an ionic project getting the build failed error,
we create ionic project by this command:
ionic start myApp super --type=ionic-angular
we run ionic project using fallowing command:
ionic cordova run android
then we get fallowing error
Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused, use --status for details
FAILURE: Build failed with an exception.
* Where:
Build file '/home/myApp/platforms/android/app/build.gradle' line: 20
* What went wrong:
A problem occurred evaluating project ':app'.
> java.lang.ExceptionInInitializerError (no error message)
* 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 13s
/home/myApp/platforms/android/gradlew: Command failed with exit code 1
Error output:
FAILURE: Build failed with an exception.
* Where:
Build file '/home/myApp/platforms/android/app/build.gradle' line: 20
* What went wrong:
A problem occurred evaluating project ':app'.
> java.lang.ExceptionInInitializerError (no error message)
* 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 13s
[ERROR] An error occurred while running subprocess cordova.
cordova run android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
right now Project Configuration:
node.js 8.10.0, android 8.0, cordova 9.0.0, ionic 4.12.0, gradle 5.2.1
But we have tried this also:
node.js 10, 12 and gradle 5.4.1, 3.3.0 etc
I've tried to run a flutter app and this error always keeps showing. I created the app with the command flutter create project_name. I added the path to the android sdk and added the ANDROID_HOME in environment variables.
The error:
* Error running Gradle:
ProcessException: Process "C:\project_f\android\gradlew.bat" exited abnormally:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\project_f\android\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
> Conversion = 'M'
* 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 6s
Command: C:\project_f\android\gradlew.bat app:properties
Finished with error: Please review your Gradle project setup in the android/ folder.
i am new in flutter i just want to start it with android studio
but when i am just try to the simple app it shows me some error
can some one help me
Error running Gradle:
Exit code 1 from: C:\Users\saswatsaubhagya\Desktop\flutter\flutter_app\android\gradlew.bat app:properties:
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\saswatsaubhagya\Desktop\flutter\flutter_app\android\app\build.gradle' line: 25
What went wrong:
A problem occurred evaluating project ':app'.
Could not resolve all files for configuration 'classpath'.
Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar
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 39s
Finished with error: Please review your Gradle project setup in the android/ folder.
timeout waiting for the application to start