我一直试图找出这个问题几天,但还没有find任何解决方案。 没有uses-feature
元素限制清单中的设备。
这些是Manifest.xml
使用的权限:
这是app.gradle
的构建配置:
compileSdkVersion 23 buildToolsVersion "24.0.3" defaultConfig { applicationId "com.XXXXX" minSdkVersion 12 targetSdkVersion 23 versionCode 2 versionName "1.0.1" }
并且该应用正在使用以下依赖项:
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile files('libs/diewald_shapeFileReader.jar') compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') { transitive = true; } compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.google.code.gson:gson:2.4' compile 'com.itextpdf:itextg:5.5.9' compile 'org.apache.directory.studio:org.apache.commons.io:2.4' compile 'org.apache.directory.studio:org.apache.commons.lang:2.6' compile 'com.google.android.gms:play-services-maps:9.0.2' }
尝试替换这些依赖项
compile 'org.apache.directory.studio:org.apache.commons.io:2.4' compile 'org.apache.directory.studio:org.apache.commons.lang:2.6'
同
compile 'commons-io:commons-io:2.4' compile 'commons-lang:commons-lang:2.6'
希望这能解决你的问题。
它必须做这件事https://github.com/robot-mitya/rosjava_bootstrap/commit/f9acae776f991374428100f8193c5f3861ca9514
改变这个
compile 'org.apache.directory.studio:org.apache.commons.io:2.4' compile 'org.apache.directory.studio:org.apache.commons.lang:2.6'
至
compile 'commons-io:commons-io:2.4' compile 'commons-lang:commons-lang:2.6'
请检查一下是否有效。
类似的问题https://stackoverflow.com/a/32749726/3111083