Blank Emulator In Android Studio

2019-07-22 01:29发布

问题:

After fixing java.util.zip.ZipException: duplicate entry, my app compiles fine. When I run it in the emulator the screen is black and nothing loads into the interface.

Please see Android Manifest below:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.appname.android"
    android:versionCode="5"
    android:versionName="1.0.4" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />

    <uses-permission android:name="android.permission.INTERNET" >
    </uses-permission>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" >
    </uses-permission>
    <uses-permission android:name="android.permission.CAMERA" >
    </uses-permission>
    <uses-permission android:name="android.permission.FLASHLIGHT" >
    </uses-permission>

    <application
        android:allowBackup="true"
        android:icon="@drawable/app"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">
        <activity
            android:name="com.appname.android.ui.<namehere>"
            android:screenOrientation="landscape"
            android:theme="@android:style/Theme.NoTitleBar"
            android:launchMode="standard"
            android:windowSoftInputMode="adjustResize|stateVisible" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.appname.android.ui.<namehere>"
            android:launchMode="standard"
            android:label="@string/<namehere>"
            android:screenOrientation="landscape" >
        </activity>
        <activity
            android:name="com.appname.android.ui.<namehere>"
            android:label="@string/<namehere>"
            android:launchMode="standard"
            android:screenOrientation="landscape">
        </activity>
        <activity
            android:name="com.appname.android.ui.<namehere>"
            android:launchMode="standard"
            android:screenOrientation="landscape"
            android:label="@string/<namehere>" >
        </activity>
        <activity
            android:name="com.appname.android.ui.<namehere>"
            android:screenOrientation="landscape"
            android:launchMode="standard"
            android:label="@string/<namehere>" >
        </activity>
        <activity
            android:name="com.appname.android.ui.<namehere>"
            android:screenOrientation="landscape"
            android:launchMode="standard"
            android:label="@string/<namehere>" >
        </activity>
        <activity
            android:name="com.appname.android.ui.<namehere>"
            android:screenOrientation="landscape"
            android:launchMode="standard"
            android:label="@string/<namehere>" >
        </activity>
    </application>

</manifest>