我在其他项目中有应用。当api升级又是一个错误时,应用api 23会进行除Google新规则以外的所有操作。如何解决该错误?
App Gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.xxxxxxx.xxx"
minSdkVersion 14
targetSdkVersion 28
versionCode 110
versionName "3.1.6"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation files('libs/volley.jar')
implementation project(':pulltorefresh-and-loadmore')
implementation 'com.android.support:appcompat-v7:+'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.readystatesoftware.systembartint:systembartint:1.0.4'
implementation 'com.google.firebase:firebase-messaging:11.2.2'
implementation 'com.google.firebase:firebase-invites:11.2.2'
implementation 'com.google.android.gms:play-services-vision:11.2.2'
implementation 'me.saket:better-link-movement-method:2'
implementation 'commons-lang:commons-lang:2.6'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.github.gcacace:signature-pad:1.2.1'
} apply plugin: 'com.google.gms.google-services'
Project Gradle中的应用
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
}
}
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'repositories {
mavenCentral()
}
dependencies {
implementation 'com.android.support:support-v4:28.0.0'
}
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 7
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}
android.libraryVariants
publishing {
publications {
maven(MavenPublication) {
groupId 'com.costum.android.widget'
artifactId 'pullandloadmore-aar'
version '1.0'
artifact source: file("${project.buildDir}/outputs/aar/${project.name}-release.aar")
}
}
repositories {
maven {
url "file:${projectDir}/maven-repo"
}
}
}
项目摇篮
buildscript {
repositories {
jcenter()
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.gms:google-services:4.2.0'
}
}
allprojects {
repositories {
jcenter()
maven { url "https://maven.google.com" }
google()
}
}
重建或同步项目会收到此错误
非法字符索引7:?.... \升brary_man巨星\调试\的AndroidManifest.xml
答案 0 :(得分:0)
检查模块build.gradle
的{{1}}-或目录结构。
存在非法的:pulltorefresh-and-loadmore
或其他字符,看起来像i
;例如。字符串i
中的í
,î
或ì
...,应为l?brary_man?fest
。还将编辑器切换为library_manifest
编码。
答案 1 :(得分:0)
我有完全相同的错误。我将Windows显示语言从土耳其语更改为英语(英语),并解决了问题。