Closed master-css closed 3 years ago
As error message says Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element at AndroidManifest.xml To solve this issue.
On Fri, 25 Jun, 2021, 10:52 am master-css, @.***> wrote:
E:\react-project\Epay>react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. (node:2748) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) Jetifier found 901 file(s) to forward-jetify. Using 4 workers... info JS server already running. info Installing the app...
Task :app:processDebugMainManifest 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 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings 18 actionable tasks: 12 executed, 6 up-to-date E:\react-project\Epay\android\app\src\debug\AndroidManifest.xml:8:9-44 Error: Attribute @.***CleartextTraffic value=(true) from AndroidManifest.xml:8:9-44 is also present at [com.payu.custombrowser:payu-custom-browser:7.6.2] AndroidManifest.xml:17:18-54 value=(false). Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element at AndroidManifest.xml:7:5-12:19 to override.
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':app:processDebugMainManifest'.
Manifest merger failed : Attribute @.***CleartextTraffic value=(true) from AndroidManifest.xml:8:9-44 is also present at [com.payu.custombrowser:payu-custom-browser:7.6.2] AndroidManifest.xml:17:18-54 value=(false). Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element at AndroidManifest.xml:7:5-12:19 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 24s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 E:\react-project\Epay\android\app\src\debug\AndroidManifest.xml:8:9-44 Error: Attribute @.***CleartextTraffic value=(true) from AndroidManifest.xml:8:9-44 is also present at [com.payu.custombrowser:payu-custom-browser:7.6.2] AndroidManifest.xml:17:18-54 value=(false). Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element at AndroidManifest.xml:7:5-12:19 to override.
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':app:processDebugMainManifest'.
Manifest merger failed : Attribute @.***CleartextTraffic value=(true) from AndroidManifest.xml:8:9-44 is also present at [com.payu.custombrowser:payu-custom-browser:7.6.2] AndroidManifest.xml:17:18-54 value=(false). Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element at AndroidManifest.xml:7:5-12:19 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 24s
at makeError (E:\react-project\Epay\node_modules\execa\index.js:174:9) at E:\react-project\Epay\node_modules\execa\index.js:278:16 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async runOnAllDevices @.\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5) at async Command.handleAction @.\cli\build\index.js:186:9)
info Run CLI with --verbose flag for more details.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Suraj-Tiwari/react-native-payumoney/issues/56, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJOPOQSICSKU5A5BDND673TUQHA7ANCNFSM47JFZZ3Q .
As error message says Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element at AndroidManifest.xml To solve this issue. … On Fri, 25 Jun, 2021, 10:52 am master-css, @.> wrote: E:\react-project\Epay>react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. (node:2748) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) Jetifier found 901 file(s) to forward-jetify. Using 4 workers... info JS server already running. info Installing the app... Task :app:processDebugMainManifest 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 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings 18 actionable tasks: 12 executed, 6 up-to-date E:\react-project\Epay\android\app\src\debug\AndroidManifest.xml:8:9-44 Error: Attribute @.CleartextTraffic value=(true) from AndroidManifest.xml:8:9-44 is also present at [com.payu.custombrowser:payu-custom-browser:7.6.2] AndroidManifest.xml:17:18-54 value=(false). Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element at AndroidManifest.xml:7:5-12:19 to override. FAILURE: Build failed with an exception. - What went wrong: Execution failed for task ':app:processDebugMainManifest'. Manifest merger failed : Attribute @.CleartextTraffic value=(true) from AndroidManifest.xml:8:9-44 is also present at [com.payu.custombrowser:payu-custom-browser:7.6.2] AndroidManifest.xml:17:18-54 value=(false). Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element at AndroidManifest.xml:7:5-12:19 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 24s error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 E:\react-project\Epay\android\app\src\debug\AndroidManifest.xml:8:9-44 Error: Attribute @.CleartextTraffic value=(true) from AndroidManifest.xml:8:9-44 is also present at [com.payu.custombrowser:payu-custom-browser:7.6.2] AndroidManifest.xml:17:18-54 value=(false). Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element at AndroidManifest.xml:7:5-12:19 to override. FAILURE: Build failed with an exception. - What went wrong: Execution failed for task ':app:processDebugMainManifest'. Manifest merger failed : Attribute @.CleartextTraffic value=(true) from AndroidManifest.xml:8:9-44 is also present at [com.payu.custombrowser:payu-custom-browser:7.6.2] AndroidManifest.xml:17:18-54 value=(false). Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element at AndroidManifest.xml:7:5-12:19 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 24s at makeError (E:\react-project\Epay\node_modules\execa\index.js:174:9) at E:\react-project\Epay\node_modules\execa\index.js:278:16 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async runOnAllDevices @.\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5) at async Command.handleAction @.***\cli\build\index.js:186:9) info Run CLI with --verbose flag for more details. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#56>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJOPOQSICSKU5A5BDND673TUQHA7ANCNFSM47JFZZ3Q .
this is my manifest file <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.epay">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Where i want to add and what i need to add ??
New Error
Failed to calculate the value of task ':app:generateDebugBuildConfig' property 'buildConfigPackageName'. Failed to query the value of property 'packageName'. org.xml.sax.SAXParseException; systemId: file:/E:/react-project/Epay/android/app/src/main/AndroidManifest.xml; lineNumber: 14; columnNumber: 39; The prefix "tools" for attribute "tools:replace" associated with an element type "application" is not bound.
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.epay">
<uses-permission android:name="android.permission.INTERNET" />
<application
tools:replace="android:usesCleartextTraffic"
android:usesCleartextTraffic="true"
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
check if this line exist on top of your file https://github.com/Suraj-Tiwari/react-native-payumoney/blob/c366d8ce6db21ddf9c0f62ff95082a2659126cd2/example/android/app/src/main/AndroidManifest.xml#L2
Thank you soo much, my issue was solved.... :)
E:\react-project\Epay>react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. (node:2748) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use
node --trace-warnings ...
to show where the warning was created) Jetifier found 901 file(s) to forward-jetify. Using 4 workers... info JS server already running. info Installing the app...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 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings 18 actionable tasks: 12 executed, 6 up-to-date E:\react-project\Epay\android\app\src\debug\AndroidManifest.xml:8:9-44 Error: Attribute application@usesCleartextTraffic value=(true) from AndroidManifest.xml:8:9-44 is also present at [com.payu.custombrowser:payu-custom-browser:7.6.2] AndroidManifest.xml:17:18-54 value=(false). Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element at AndroidManifest.xml:7:5-12:19 to override.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:processDebugMainManifest'.
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.
BUILD FAILED in 24s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 E:\react-project\Epay\android\app\src\debug\AndroidManifest.xml:8:9-44 Error: Attribute application@usesCleartextTraffic value=(true) from AndroidManifest.xml:8:9-44 is also present at [com.payu.custombrowser:payu-custom-browser:7.6.2] AndroidManifest.xml:17:18-54 value=(false). Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element at AndroidManifest.xml:7:5-12:19 to override.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:processDebugMainManifest'.
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.
BUILD FAILED in 24s
info Run CLI with --verbose flag for more details.