我遇到错误
错误:无法解析C:\ Users ..... \ app \ src \ main \ AndroidManifest.xml中的XML [row,col]处的ParseError:[28,9] 消息:预期的开始或结束标记 受影响的模块:应用
在我不小心添加了名称为Mainactivity的新活动(使用右键单击新活动而不是Java)后,我删除了我的旧Mainactivity的名称),然后将其删除了
这是我的manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.accESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<application
android:name=".BimbPA"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsrtl="true"
android:theme="@style/Apptheme"
android:usesCleartextTraffic="true">
<activity android:name=".Loginactivity" />
<activity android:name=".Form_Mhs_Menu">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Form_Mhs_00">
launchMode = "singleInstance"
</activity>
<activity android:name=".Form_Mhs_00_edit" />
<activity android:name=".Form_Mhs_00_Photo" />
<activity android:name=".Form_Mhs_01" />
<activity android:name=".Form_Mhs_01_edit1" />
<activity android:name=".Form_Mhs_01_edit2" />
<activity android:name=".Form_Mhs_01_edit3" />
<activity android:name=".Form_Mhs_02" />
<activity android:name=".Form_Mhs_03" />
<activity android:name=".Form_Mhs_04" />
<activity android:name=".Form_Mhs_05" />
</application>
我的build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationid "com.example.bimbinganpasi"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs',include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.github.lecho:hellocharts-library:1.5.8@aar'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.code.gson:gson:2.0.2'
implementation 'com.squareup.retrofit2:retrofit:2.0.2'
implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.squareup.picasso:picasso:2.71828'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}