我的应用程序没有出现在Android工作室模拟器上

时间:2015-09-15 08:41:43

标签: android xml android-launcher

昨天一切都很好,但是现在它在我运行AVD时不会出现。

不知道这是非常标准的AndroidManifest.xml文件。

    <?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.app" >

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">
        <activity
            android:name="com.example.app.Hoved"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

现在全部修好了,谢谢! 问题是我在Xamarin上编写Android应用程序,所以你在那里使用标志而不是在清单中声明活动。

1 个答案:

答案 0 :(得分:0)

你错过了这两个''行',它非常重要,但只是超越它(超过) &lt;应用程序 ,它会起作用。

<uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="21" />

这是最基本的问题,你应该知道在开始在visual studio或eclipse中编程之前。只需在youtube上观看一些教程,它就会对你有所帮助。祝你好运。

相关问题