Android Studio 3.2.1 does not locate "Default Activity"

Asked

Viewed 120 times

0

Personal I am with this problem since Android 3.2. I have done the following procedures to try to fix the problem:

- I’ve made clean and rebuild the project
- I already cleared the cache and restarted Android Studio
- I’ve done Sync with Gradle (this works, but only lets you install the app once, then gives error again)
- I have deleted and recreated the project several times (never helps)


Can you give me a hand? I don’t know what to do anymore. Follow the prints below.

AndroidManifest Run Configurations App build.gradle BaseActivity.kt

  • Give preference to post the code, not images... here at Sopt we use your own code to help you

2 answers

1

You could do some tests?

  1. On the Oncreate() of your Basectivity set contentView.

    setContentView(R.layout."SeuLayout")

  2. Try to set in hand which Activity is your Auncher, following your second screenshot, where is "Default Activity" switches to "Specified Activity" and in the field below selects your base Activity.

1

Try to reset the Android Studio Cache on:

File -> Invalidate Caches / Restart...

If it doesn’t work, make sure that all SDK, JRE, and NDK paths are updated and pointing to the correct installation paths. In:

File > Project Structure > SDK Location

And the SDK version packages on:

File > Settings > Apperance & Behavior > System Settings > Android SDK

Browser other questions tagged

You are not signed in. Login or sign up in order to post.