-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find explicit activity class BootstrapActivity #196
Comments
Issue was entirely on my end! |
@sophiataskova how did you solve your issue? Facing the same issue. |
@sophiataskova it would be really nice if you had left a little more detail as to what you did wrong and what you did to fix it on your end. |
Uninstalling of the test package is helped in my case. |
@sophiataskova how did you solve your issue? Facing the same issue. |
Can anyone please share how they resolved this? |
Adding
to the AndroidManifest of the androidTest sourceSet seems to work, but this feels like a workaround. |
I've started seeing this but only on Android 4.4.
|
it works for me. Thank you :) |
For Android 13 devices, this is fixed in |
Was seeing the following issues when I run tests in NavigationTest: - android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.theperiodpurse.test/androidx.test.core.app.InstrumentationActivityInvoker$EmptyActivity}; have you declared this activity in your AndroidManifest.xml, or does your intent not match its declared <intent-filter>? - android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.theperiodpurse.test/androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity}; have you declared this activity in your AndroidManifest.xml, or does your intent not match its declared <intent-filter>? Referred to android/android-test#196 for the fix. Looks like this is fixed in androidx.test:core:1.5.0-alpha02.
* Added Basic Calendar Cycle Top Bar * added dependencies * Styled Calendar Cycle Top Bar * Changed TopBar to use tabs, added navigation * setup basic navigation bar and graph * added calender navgiation to FAB * modularized BottomNav * modularized FAB * moved Screen enum to NavigationGraph * Added Swiping to tabs, comments * cleanup * removed unused icon * Updated Indicator Color * removed unused colors * added dependencies and tests * Added activity to manifest - temp fix so tests run Was seeing the following issues when I run tests in NavigationTest: - android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.theperiodpurse.test/androidx.test.core.app.InstrumentationActivityInvoker$EmptyActivity}; have you declared this activity in your AndroidManifest.xml, or does your intent not match its declared <intent-filter>? - android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.theperiodpurse.test/androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity}; have you declared this activity in your AndroidManifest.xml, or does your intent not match its declared <intent-filter>? Referred to android/android-test#196 for the fix. Looks like this is fixed in androidx.test:core:1.5.0-alpha02. * removed changes to manifest * added androidTestResultsUserPreferences to gitignore * added useful contentDescription to FAB * added instrumental tests to CI * added emulator use to workflow * fixed typo in ci * test with macOS * specify system image * Added content description for testing * Added content description for testing * Added testing for tabs * added check to hide navigation bar during onboarding * better implementation for hiding nav bar * bandaid fix for tests * fix tests * create different screen to start in Calendar page * added skipOnboarding option to AppScreen * popback stack after onboarding * #3 Created the Calendar Layout (#33) * Added basic calendar setup to the screen * Changed the minSDK in Project Configs * Updated Visuals to look like original app * Added Click Functionality * Revert "#3 Created the Calendar Layout (#33)" (#38) This reverts commit 18909c4. Co-authored-by: Pierre-William Lessard <lessardpw@gmail.com> Co-authored-by: Madeline <93456777+madelahn@users.noreply.github.com>
It works for me. Thank you 😄 |
That happens sometimes. But how did you solve it? This is the top search result for the problem. Many people are interested to know how you solved the problem. Anyway the solution is described in #1412 . |
@sophiataskova androidTestImplementation "androidx.test:core-ktx:1.5.0" worked for me. Was on 1.4.0 before when getting this error. Thanks @VuNgN |
Thanks for this, saving for later |
Description
Making my first attempts at using ActivityScenario, and I immediately stumbled upon this exception
Steps to Reproduce
Here's my code:
Expected Results
scenario
gets created and I'm able to drive MainActivity's lifecycle with itActual Results
android.content.ActivityNotFoundException
AndroidX Test and Android OS Versions
where
Link to a public git repo demonstrating the problem:
Let me know if I should make one, I wonder if I'm just missing something obvious and this isn't a bug.
The text was updated successfully, but these errors were encountered: