小编mon*_*ano的帖子

无法在 android studio 中构建 apk,因为任务 ':app:processDebugAndroidTestManifest' 执行失败

这是Android Studio电鳗上的| 2022.1.1 补丁 2,但我上次在版本 4.xx 上构建应用程序当尝试运行构建 apk 命令时,它给出了以下错误:

> Task :app:processDebugAndroidTestManifest FAILED
[androidx.test.espresso:espresso-core:3.2.0] C:\Users\Jason_A\.gradle\caches\transforms-3\aaf0029a0d039603c4fc1b2830c7e911\transformed\espresso-core-3.2.0\AndroidManifest.xml Warning:
    Namespace 'androidx.test.espresso' used in: androidx.test.espresso:espresso-core:3.2.0, androidx.test.espresso:espresso-idling-resource:3.2.0.
G:\Coding\Android_Studio\YouTubeStartEndTime\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest7671241862673218921.xml:27:9-33:20 Error:
    android:exported needs to be explicitly specified for element <activity#androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity>. 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.
G:\Coding\Android_Studio\YouTubeStartEndTime\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest7671241862673218921.xml:34:9-40:20 Error:
    android:exported needs to be explicitly specified for element <activity#androidx.test.core.app.InstrumentationActivityInvoker$EmptyActivity>. Apps targeting Android 12 and higher are required …
Run Code Online (Sandbox Code Playgroud)

android android-manifest android-studio build.gradle

3
推荐指数
1
解决办法
965
查看次数