Android Studio中的空白模拟器

时间:2015-04-26 18:28:23

标签: android-studio android-emulator android-gradle android-sdk-tools

修复java.util.zip.ZipException: duplicate entry后,我的应用编译得很好。当我在模拟器中运行它时,屏幕是黑色的,没有任何东西加载到界面中。

请参阅下面的Android Manifest:

<?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>

0 个答案:

没有答案