Chris Fillmore
09/09/2022, 5:16 PM@Preview
on a device, I get an error of the sort: https://stackoverflow.com/q/68554294Chris Fillmore
09/09/2022, 5:17 PMandroidTest/AndroidManifest.xml
<activity
android:name="androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity"
android:exported="false"
tools:node="merge"
tools:overrideLibrary="androidx.test.core"/>
<activity
android:name="androidx.test.core.app.InstrumentationActivityInvoker$EmptyActivity"
android:exported="false"
tools:node="merge"
tools:overrideLibrary="androidx.test.core"/>
<activity
android:name="androidx.test.core.app.InstrumentationActivityInvoker$EmptyFloatingActivity"
android:exported="false"
tools:node="merge"
tools:overrideLibrary="androidx.test.core"/>
Chris Fillmore
09/09/2022, 5:18 PMandroidx.test.core
package is not setting android:exported
on its own.Chris Fillmore
09/09/2022, 5:18 PM@Preview
, I don’t have trouble building otherwiseChris Fillmore
09/09/2022, 5:18 PMChris Fillmore
09/09/2022, 5:20 PMtargetSdk = 33
. If I roll back to targetSdk = 30
it avoids this whole issue altogether, as expected.Chris Fillmore
09/09/2022, 5:24 PM/__redacted__/core/build/intermediates/tmp/manifest/androidTest/debug/tempFile2ProcessTestManifest17120162708018707534.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.
/__redacted__/core/build/intermediates/tmp/manifest/androidTest/debug/tempFile2ProcessTestManifest17120162708018707534.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 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.
/__redacted__/core/build/intermediates/tmp/manifest/androidTest/debug/tempFile2ProcessTestManifest17120162708018707534.xml:41:9-47:20 Error:
android:exported needs to be explicitly specified for element <activity#androidx.test.core.app.InstrumentationActivityInvoker$EmptyFloatingActivity>. 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.
Ian Lake
09/10/2022, 12:09 AMandroidx.test.core
has set those flags for over a year now - as of Test Core 1.4.0. What version are you using?Chris Fillmore
09/10/2022, 1:01 AMChris Fillmore
09/12/2022, 4:02 PMandroidx.test.ext:junit
from 1.1.2
-> 1.1.3
Chris Fillmore
09/12/2022, 4:02 PM