Tag Archives: Android Studio Warning

[Solved] Android Studio Warning: Default Activity not found

1.AndroidManifest.xml

<activity
            android:name=".activity.StartPage"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

2.If that doesn’t solve the problem:

Delete all files in the following directory.

C:\Users\my_user_name\.AndroidStudio3.3\system\caches

View android studio version.

[Solved] Android Studio Warning: Failed to load AppCompat ActionBar with unknown error

Android Studio 3.1.4

Problem: when a new project is created, render problem – failed to load appcompat actionbar with unknown error appears in the XML project under layout

Solution:

1. Find the app/values/styles.xml file in the project directory and double-click to open it

2. Add the code segment under the file as follows:

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

Change to:

<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">

3. Reopen the XML layout interface, and the problem has been solved