Blank Emulator In Android Studio

╄→гoц情女王★ 提交于 2019-12-24 03:05:10

问题


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>

来源:https://stackoverflow.com/questions/29881721/blank-emulator-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!