You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running "detox build -c android.release && detox test -c android.release" build fails in the step of > Task :app:processReleaseAndroidTestManifest due to the following error: android/app/build/intermediates/tmp/manifest/androidTest/release/manifestMerger5804382302689770830.xml Error: 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.
When I build the app with Android, both from debug and release mode it works without problem
I reviewed both AndroidManifest.xml and Merged Manifest, and all the activities, services and receivers have the attribute android:exported="true/false"
Steps To Reproduce
I have tested this issue on the latest Detox release and it still reproduces
This are the versions in build.gradle file (I can't compileSdkVersion with lower number) buildToolsVersion = "30.0.2" minSdkVersion = 26 compileSdkVersion = 31 targetSdkVersion = 31 ndkVersion = "21.4.7075529"
Java version is openjdk11
Followed all the steps of the documentation
Upgraded react native to version 0.66, to have my app compatible with iOS15 and Android 12
When I made everything working, the detox build was failing when running the android:e2e-release script
Expected behavior
It should build correctly, like it build correctly when I distribute the app both to testflight and play store.
Detox Trace-Logs
Detox logs
yarn run v1.22.17
$ detox build -c android.release && detox test -c android.release
detox[65336] INFO: [build.js] cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..
Task :app:lintVitalRelease
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
/Users/lingodaserver/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.4.10/998caa30623f73223194a8b657abd2baec4880ea/kotlin-stdlib-jdk8-1.4.10.jar (version 1.4)
/Users/lingodaserver/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.4.10/30e46450b0bb3dbf43898d2f461be4a942784780/kotlin-stdlib-jdk7-1.4.10.jar (version 1.4)
/Users/lingodaserver/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.4.10/ea29e063d2bbe695be13e9d044dcfb0c7add398e/kotlin-stdlib-1.4.10.jar (version 1.4)
/Users/lingodaserver/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.4.10/6229be3465805c99db1142ad75e6c6ddeac0b04c/kotlin-stdlib-common-1.4.10.jar (version 1.4)
/Users/lingodaserver/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.21/2f537cad7e9eeb9da73738c8812e1e4cf9b62e4e/kotlin-stdlib-1.5.21.jar (version 1.5)
/Users/lingodaserver/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.5.21/cc8bf3586fd2ebcf234058b9440bb406e62dfacb/kotlin-stdlib-common-1.5.21.jar (version 1.5)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
Task :app:processReleaseAndroidTestManifest FAILED
/Users/lingodaserver/lingoda/mobile/android/app/build/intermediates/tmp/manifest/androidTest/release/manifestMerger5804382302689770830.xml Error:
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.
/Users/lingodaserver/lingoda/mobile/android/app/build/intermediates/tmp/manifest/androidTest/release/manifestMerger5804382302689770830.xml Error:
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.
/Users/lingodaserver/lingoda/mobile/android/app/build/intermediates/tmp/manifest/androidTest/release/manifestMerger5804382302689770830.xml Error:
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.
What went wrong:
Execution failed for task ':app:processReleaseAndroidTestManifest'.
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.
Important: 'detox build' is a convenience shortcut for calling your own build command, as provided in the config file.
Failures in this build command are not the responsibility of Detox. You are responsible for maintaining this command.
detox[65336] ERROR: [cli.js] Command failed: cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..
Device logs (adb logcat)
Device logs
(paste logs here)
Screenshots / Video
Environment
Detox: 18.22.2
React Native: 0.66
Node: v12.22.6
Device: any emulator, in headless mode, doesn´t matter
OS: Android
Test-runner (select one): jest
The text was updated successfully, but these errors were encountered:
Hi, for me the solution was to add this tools:node="merge" behind each android:exported="true" and add xmlns:tools="http://schemas.android.com/tools" property in your manifest balise.
Describe the bug
When running "detox build -c android.release && detox test -c android.release" build fails in the step of
> Task :app:processReleaseAndroidTestManifest
due to the following error:android/app/build/intermediates/tmp/manifest/androidTest/release/manifestMerger5804382302689770830.xml Error: Apps targeting Android 12 and higher are required to specify an explicit value for
android:exportedwhen the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
android:exported="true/false"
Steps To Reproduce
I have tested this issue on the latest Detox release and it still reproduces
This are the versions in build.gradle file (I can't compileSdkVersion with lower number)
buildToolsVersion = "30.0.2" minSdkVersion = 26 compileSdkVersion = 31 targetSdkVersion = 31 ndkVersion = "21.4.7075529"
Java version is openjdk11
android:e2e-release
scriptExpected behavior
Detox Trace-Logs
Detox logs
yarn run v1.22.17 $ detox build -c android.release && detox test -c android.release detox[65336] INFO: [build.js] cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..- What went wrong:
-
-
info Writing bundle output to:, /Users/lingodaserver/lingoda/mobile/android/app/build/generated/assets/react/release/index.android.bundle
info Writing sourcemap output to:, /Users/lingodaserver/lingoda/mobile/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 41 asset files
info Done copying assets
Source Map Upload Report
Minified Scripts
~/index.android.bundle (sourcemap at index.android.bundle.map)
Source Maps
~/index.android.bundle.map
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
FAILURE: Build failed with an exception.
Execution failed for task ':app:processReleaseAndroidTestManifest'.
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 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 6m 20s
729 actionable tasks: 11 executed, 718 up-to-date
detox[65336] WARN: [build.js]
Important: 'detox build' is a convenience shortcut for calling your own build command, as provided in the config file.
Failures in this build command are not the responsibility of Detox. You are responsible for maintaining this command.
detox[65336] ERROR: [cli.js] Command failed: cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..
Device logs (adb logcat)
Device logs
(paste logs here)
Screenshots / Video
Environment
jest
The text was updated successfully, but these errors were encountered: