Task :app:processDebugManifest FAILED
/home/ujjwal.anand/Documents/carpool/app/src/main/AndroidManifest.xml:21:13-66 Error:
Attribute activity#com.google.android.libraries.places.widget.AutocompleteActivity#theme value=(#style/PlacesAutocompleteThemeOverlay) from [com.google.android.libraries.places:places-compat:2.1.0] AndroidManifest.xml:21:13-66
is also present at [com.google.android.libraries.places:places:2.1.0] AndroidManifest.xml:18:13-61 value=(#style/PlacesAutocompleteOverlay).
Suggestion: add 'tools:replace="android:theme"' to element at AndroidManifest.xml:16:9-23:20 to override.
/home/ujjwal.anand/Documents/carpool/app/src/main/AndroidManifest.xml:22:13-71 Error:
Attribute activity#com.google.android.libraries.places.widget.AutocompleteActivity#windowSoftInputMode value=(stateAlwaysVisible|adjustPan) from [com.google.android.libraries.places:places-compat:2.1.0] AndroidManifest.xml:22:13-71
is also present at [com.google.android.libraries.places:places:2.1.0] AndroidManifest.xml:19:13-55 value=(adjustResize).
Suggestion: add 'tools:replace="android:windowSoftInputMode"' to element at AndroidManifest.xml:16:9-23:20 to override.
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugManifest'.
Manifest merger failed with multiple errors, see logs
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 1s
i had the same problem. i solved it by removing
implementation 'com.google.android.libraries.places:places:2.1.0' from my build.gradle file. i was implementing the dependancy along side with implementation 'com.google.android.libraries.places:places-compat:2.1.0' depending on what you want to do you have to choose the library you want to implement
Related
i get this errors after installing an app project from a youtube video :
C:\Users\WELTINFO\Documents\flutter_cubit_app\flutter_cubit_app\android\app\src\main\AndroidManifest.xml Error:
android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
Manifest merger failed : android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
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 5s
Exception: Gradle task assembleDebug failed with exit code 1
I am stuck at the below issue for quite some time and its not getting resolved, had searched across stack overflow, google, but nothing is working for me. There's a workaround suggested on ionic portal, that too is not working. Please help me to resolve the issue.
I have tried to add google-services.json in android/app directory, then the 2nd issue comes, then why I tried to add the same file android/capacitor-cordova-android-plugins directory, then another issue comes stating:
Execution failed for task ':capacitor-cordova-android-plugins:processDebugGoogleServices'. No matching client found for package name 'capacitor.android.plugins'
Below is the original issue, when google-services.json, is not placed anywhere.
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
/Users/xxxx/development/projects/appName/android/app/google-services.json
/Users/xxxx/development/projects/appName/android/app/src/nullnull/google-services.json
/Users/xxxx/development/projects/appName/android/app/src/debug/google-services.json
/Users/xxxx/development/projects/appName/android/app/src/nullnullDebug/google-services.json
/Users/xxxx/development/projects/appName/android/app/src/nullnull/debug/google-services.json
/Users/xxxx/development/projects/appName/android/app/src/debug/nullnull/google-services.json
* 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 ':capacitor-cordova-android-plugins:processDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
/Users/xxxx/development/projects/appName/android/capacitor-cordova-android-plugins/google-services.json
/Users/xxxx/development/projects/appName/android/capacitor-cordova-android-plugins/src/nullnull/google-services.json
/Users/xxxx/development/projects/appName/android/capacitor-cordova-android-plugins/src/debug/google-services.json
/Users/xxxx/development/projects/appName/android/capacitor-cordova-android-plugins/src/nullnullDebug/google-services.json
/Users/xxxx/development/projects/appName/android/capacitor-cordova-android-plugins/src/nullnull/debug/google-services.json
/Users/xxxx/development/projects/appName/android/capacitor-cordova-android-plugins/src/debug/nullnull/google-services.json
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 3s
118 actionable tasks: 22 executed, 96 up-to-date
I am trying to use the react-native-call-detection library to get the incoming call number.
But when I start the android emulator this low error appears.
I have already run react-native unlink react-native-call-detection, but the error continues. Having identify the other mistakes but to no avail!
If I completely remove react-native-call-detection then the emulator opens without any error.
Can someone help me please?
Thanks.
Microsoft Windows [versão 10.0.18363.535]
(c) 2019 Microsoft Corporation. Todos os direitos reservados.
L:\wAPP\reactCall>react-native run-android
error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:
- react-native-call-detection (to unlink run: "react-native unlink react-native-call-detection")
This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink <dependency>" and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.
Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1645 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
info Installing the app...
> Task :app:processDebugManifest FAILED
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings
21 actionable tasks: 3 executed, 18 up-to-date
L:\wAPP\reactCall\android\app\src\debug\AndroidManifest.xml:11:7-34 Error:
Attribute application#allowBackup value=(false) from AndroidManifest.xml:11:7-34
is also present at [:react-native-call-detection] AndroidManifest.xml:14:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:7:5-117 to override.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application#allowBackup value=(false) from AndroidManifest.xml:11:7-34
is also present at [:react-native-call-detection] AndroidManifest.xml:14:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:7:5-117 to override.
* 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 7s
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
L:\wAPP\reactCall\android\app\src\debug\AndroidManifest.xml:11:7-34 Error:
Attribute application#allowBackup value=(false) from AndroidManifest.xml:11:7-34
is also present at [:react-native-call-detection] AndroidManifest.xml:14:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:7:5-117 to override.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application#allowBackup value=(false) from AndroidManifest.xml:11:7-34
is also present at [:react-native-call-detection] AndroidManifest.xml:14:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:7:5-117 to override.
* 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 7s
at checkExecSyncError (child_process.js:610:11)
at execFileSync (child_process.js:628:15)
at runOnAllDevices (L:\wAPP\reactCall\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at buildAndRun (L:\wAPP\reactCall\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)
at L:\wAPP\reactCall\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Command.handleAction (L:\wAPP\reactCall\node_modules\#react-native-community\cli\build\index.js:164:9)
L:\wAPP\reactCall>
Try edit /android/app/main/AndroidManifest.xml in manifest tag at the top of the file add xmlns:tools="http://schemas.android.com/tools" before package name.
In application tag remove android:allowBackup="false" and add tools:replace="android:allowBackup"
And Don't forget require READ_PHONE_STATE permission by add <uses-permission android:name="android.permission.READ_PHONE_STATE" />
I want to show my rtmp stream in my react-native application but i can't do that. I tried 3-4 module and everyone gave me error. i can't even start my application.
i tried this firstly and i belive this module what i need but i can't use.
https://medium.com/#edisondevadoss/react-native-live-stream-rtmp-video-player-3db9d43c6137
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 875 file(s) to forward-jetify. Using 12 workers...
info JS server already running.
info Installing the app...
> Configure project :react-native-ksyvideo
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (25.0.0) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.4.1.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '25.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
> Task :app:processDebugManifest FAILED
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
20 actionable tasks: 2 executed, 18 up-to-date
C:\Users\AGAOGLU\reactnative\agd\android\app\src\debug\AndroidManifest.xml:11:7-34 Error:
Attribute application#allowBackup value=(false) from AndroidManifest.xml:11:7-34
is also present at [:react-native-ksyvideo] AndroidManifest.xml:19:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:7:5-117 to override.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application#allowBackup value=(false) from AndroidManifest.xml:11:7-34
is also present at [:react-native-ksyvideo] AndroidManifest.xml:19:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:7:5-117 to override.
* 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 4s
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
C:\Users\AGAOGLU\reactnative\agd\android\app\src\debug\AndroidManifest.xml:11:7-34 Error:
Attribute application#allowBackup value=(false) from AndroidManifest.xml:11:7-34
is also present at [:react-native-ksyvideo] AndroidManifest.xml:19:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:7:5-117 to override.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application#allowBackup value=(false) from AndroidManifest.xml:11:7-34
is also present at [:react-native-ksyvideo] AndroidManifest.xml:19:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:7:5-117 to override.
* 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 4s
at checkExecSyncError (child_process.js:616:11)
at execFileSync (child_process.js:634:13)
at runOnAllDevices (C:\Users\AGAOGLU\reactnative\agd\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:74:39)
at buildAndRun (C:\Users\AGAOGLU\reactnative\agd\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)
at then.result (C:\Users\AGAOGLU\reactnative\agd\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12)
at process._tickCallback (internal/process/next_tick.js:68:7)
i don't know what i should understand this error.
When I build android from my cmd. Then it displayed the following msg as below. How to solve it?:
What went wrong:
Execution failed for task ':processDebugManifest'.
Manifest merger failed : Attribute meta-data#com.google.android.gms.version#value value=(8115000) from AndroidManifest.xml:24:66-89
is also present at [com.google.android.gms:play-services-basement:9.0.2] AndroidManifest.xml:23:13-66 value=(#integer/google_play_services_version).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:24:9-92 to override.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
D:\phoneGap\tatkaKhabor\platforms\android\AndroidManifest.xml:24:66-89 Error:
Attribute meta-data#com.google.android.gms.version#value value=(8115000) from AndroidManifest.xml:24:66-89
is also present at [com.google.android.gms:play-services-basement:9.0.2] AndroidManifest.xml:23:13-66 value=(#integer/google_play_services_version).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:24:9-92 to override.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':processDebugManifest'.
Manifest merger failed : Attribute meta-data#com.google.android.gms.version#value value=(8115000) from AndroidManifest.xml:24:66-89
is also present at [com.google.android.gms:play-services-basement:9.0.2] AndroidManifest.xml:23:13-66 value=(#integer/google_play_services_version).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:24:9-92 to override.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.