Android 有人可以检查我的manifest.xml吗?

Android 有人可以检查我的manifest.xml吗?,android,android-studio,android-manifest,Android,Android Studio,Android Manifest,我是一个程序员新手。我想建立我自己的应用程序。我已经建立了APK来测试我的LG G6。但安装时出现错误消息“解析包时出现问题”。我读到这可能是由损坏的清单引起的。我在那里没有发现问题。但我只是一个初学者,所以如果你能检查一下,也许你能告诉我问题所在,那就太好了 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"

我是一个程序员新手。我想建立我自己的应用程序。我已经建立了APK来测试我的LG G6。但安装时出现错误消息“解析包时出现问题”。我读到这可能是由损坏的清单引起的。我在那里没有发现问题。但我只是一个初学者,所以如果你能检查一下,也许你能告诉我问题所在,那就太好了

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="e.jonathan.kirchenappalpha">
    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="Kirchgemeinde Königshain BETA"
        android:roundIcon="@drawable/logo"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity
            android:name=".Menu"
            android:configChanges="orientation"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <meta-data
            android:name="preloaded_fonts"
            android:resource="@array/preloaded_fonts" />

        <activity
            android:name=".Info"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name=".veranstaltungen"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name=".monat_1"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name=".monat_2"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name=".monat_3"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity android:name=".feedback" />
        <activity android:name=".Gemeindekreise"></activity>
    </application>

</manifest>

如果您想在物理设备上测试应用程序,请连接手机并打开手机上的开发者选项(在内部版本号上轻触7次),然后运行应用程序(Shift+F10)


不过,要生成APK,请转到
Build>Generate Signed APK
。您可以找到一些帮助。

可以添加您的应用程序gradle吗?因为这可能是一个问题,它在模拟器上工作吗?您是如何(通过gradle命令或IDE)构建APK的?我也面临这个问题,但由于清单的原因,它没有发生。检查一下这个Grandle代码addedIt在我的模拟器上的工作情况。只有我的物理智能手机才会出现这些问题。
android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "e.jonathan.kirchenappalpha"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    implementation 'com.android.support:design:26.1.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    implementation 'com.google.android.gms:play-services-ads:12.0.1'
}