安装app debug但无法打开

时间:2016-10-25 19:05:38

标签: android android-manifest

这是我的android清单文件。我可以安装apk,但我无法打开它。我如何允许它打开?

`

<application
    android:allowBackup="true"
    android:icon="@drawable/lockicon"
    android:label="@string/app_name"
    android:supportsRtl="true"



    android:theme="@style/AppTheme">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    <!-- ATTENTION: This was auto-generated to add Google Play services to your project for
 App Indexing.  See https://g.co/AppIndexing/AndroidStudio for more information. -->
    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />
</application>

`

1 个答案:

答案 0 :(得分:0)

您的清单文件中未注册活动。在清单中注册您的活动,并初始化启动器屏幕。更多阅读https://developer.android.com/reference/android/app/Activity.html