i having issues with eas build. always stuck on run gradle - react-native

Android build failed:
Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
**any solution? **
the same as in this forum but I also haven't found the answer
https://github.com/expo/eas-cli/issues/1496
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
try
expo doctor
expo doctor --fix-dependencies
but not fixed

Related

Task :expo-crypto:compileReleaseKotlin FAILED after installing expo-auth-session

After installing expo-auth-session the android build is crashing.
> Task :expo-crypto:compileReleaseKotlin FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
The error was resolved after adding expo-crypto and all the other dependencies mentioned in yarn.lock.
I think the error occurred because expo-crypto is the dependency of expo-auth-session.
screenshot from yarn.lock.

when i tried to launch react-native application on physical device this error i got

Task :app:processDebugMainManifest FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

Execution failed for task ':app:processDebugResources'[flutter]

I am developing an flutter e-commerce app for both Android and IOS users. When I run my code, its shows an resource error, I couldn't find the answers.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
C:\Users\JEYASRI.A\AndroidStudioProjects\flutter_foodapp\build\file_picker\intermediates\library_manifest\debug\AndroidManifest.xml:9:5-15:15: AAPT: error: unexpected element <queries> found in <manifest>.
* 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 47s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin cloud_firestore...
Running Gradle task 'assembleAarRelease'...
Exception: The plugin cloud_firestore could not be built due to the issue above.```
Please note that you are getting the following error:
AAPT: error: unexpected element <queries> found in <manifest>.
The error is stating that the element is not being recognized by Android Gradle Plugin.
Android 11 introduced <queries> as a manifest element and older versions of the Android Gradle Plugin do not have this element.
So it could be that you are using an Android Gradle Plugin which does not allow the element.
There are some series of patch versions released by Google in order to fix this error (3.3.3, 3.4.3, 3.5.4, 3.6.4 and 4.0.1).
So please upgrade your build gradle version to one from the above list.
Android Studio 4.1 or higher, with a matching
Android Gradle Plugin (e.g 4.1.* series) does recognize manifest element so they don't face these types of errors.
Have a look into the Android Developers Blog post.

React native Task 'installDebug' not found in project ':app' when run-android

I jus started to setup development environment for react-native-cli. I was followed the instruction on the document on this link:
https://reactnative.dev/docs/environment-setup
but i got error message when i start to run my sample project.
I got this message: Task 'installDebug' not found in project ':app' when i executed this command: 'react-native run android'.
what can i do to solved this error.
thx
Opening android directory in Android Studio and building there does the trick.

IntelliJ IDEA won't run Flutter app

I am experiencing a strange issue with Flutter development and IntelliJ IDEA. I am developing a flutter application with IntelliJ IDEA 2017 1.4 Build number IC-171.4694.23, I am not able to run application on connected Android device, when I run the application, it shows a background process running "Running gradle assembleDebug... " and then the process stops, nothing happens although I was able to run and debug it earlier.
Solution tried,
Disabling/ enabling adb plugin.
Disabling/ enabling developer options and usb debugging.
Re-installing flutter.
I tried with android emulator also, same thing happens. So I think the problem is not with the device. Any help is appreciated.
Update:
This issue happens when I add image_picker plugin to my pubspec.yaml.
dependencies:
flutter:
sdk: flutter
image_picker:
Is flutter run failing with the following error?
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
> Could not find com.github.esafirm.android-image-picker:imagepicker:1.5.0.
Required by:
project :app > project :image_picker
> Could not get unknown property 'compileDebugJavaWithJavac' for project ':app' of type org.gradle.api.Project.
If so, you can fix this issue by modifying your build.gradle as described in the image_picker documentation.
allprojects {
repositories {
jcenter()
maven { url "https://maven.google.com" }
maven { url "https://jitpack.io" } // add this line
}
}