android - 任何人都可以检查我的 manifest.xml 吗?
问题描述
我是程序员新手。我想构建自己的应用程序。我已经构建了 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>
格兰勒
应用插件:'com.android.application'
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'
}
解决方案
推荐阅读
- javascript - Discord bot不会登录终端
- flutter - 当我在颤振中调用 didChangeDependencies 中的多个提供者时,它显示错误
- c++ - 可以在 C++ 的头文件中只使用一次“使用命名空间”吗?
- python - Pygame:消失在背景后面的玩家精灵
- javascript - Vue.js - 找到匹配时如何在字符串的开头添加html标签
- r - R基于逻辑压缩数据帧
- multithreading - 多线程环境中的 ASP.NET Core Scoped DbContext (EntityFramework)
- python - 是否可以将参数(数据)传递给散景应用程序?
- php - 填写表格时收到访客信息的电子邮件
- java - 我在华为 AppGallery 上发布我的应用后,Admob 广告没有显示