本文将分享android–在interactivemedia中的APKerror_prone/Annotations.gwt.xml中复制的重复文件的详细内容,此外,我们还将为大家带来关于androi
本文将分享android – 在interactivemedia中的APK error_prone / Annotations.gwt.xml中复制的重复文件的详细内容,此外,我们还将为大家带来关于android DialogFragment出现 Can not perform this action after onSaveInstanceState、Android Gradle在APK META-INF中复制的重复文件、Android Studio 0.4在APK META-INF / LICENSE.txt中复制的重复文件、Android Studio 1.5.1在APK META-INF / NOTICE.txt中复制的重复文件commons-codec-1.9.jar …?的相关知识,希望对你有所帮助。
本文目录一览:- android – 在interactivemedia中的APK error_prone / Annotations.gwt.xml中复制的重复文件
- android DialogFragment出现 Can not perform this action after onSaveInstanceState
- Android Gradle在APK META-INF中复制的重复文件
- Android Studio 0.4在APK META-INF / LICENSE.txt中复制的重复文件
- Android Studio 1.5.1在APK META-INF / NOTICE.txt中复制的重复文件commons-codec-1.9.jar …?
android – 在interactivemedia中的APK error_prone / Annotations.gwt.xml中复制的重复文件
com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK error_prone/Annotations.gwt.xml
File1: /Users/manmohansingh/.android/build-cache/c5c673e638724b8a150c9a07f761f05b8fef0253/output/jars/classes.jar
File2: /Users/manmohansingh/.gradle/caches/modules-2/files-2.1/com.google.ads.interactivemedia.v3/interactivemedia/3.6.0/76bc1544c67335c4bb38631001fd05a3e70004e4/interactivemedia-3.6.0.jar
解决方法
packagingOptions { exclude 'error_prone/Annotations.gwt.xml' exclude 'third_party/java_src/error_prone/project/annotations/Annotations.gwt.xml' exclude 'third_party/java_src/error_prone/project/annotations/Google_internal.gwt.xml' }
最后 :
packagingOptions { exclude 'meta-inf/DEPENDENCIES.txt' exclude 'meta-inf/LICENSE.txt' exclude 'meta-inf/NOTICE.txt' exclude 'meta-inf/NOTICE' exclude 'meta-inf/LICENSE' exclude 'meta-inf/DEPENDENCIES' exclude 'meta-inf/notice.txt' exclude 'meta-inf/license.txt' exclude 'meta-inf/dependencies.txt' exclude 'meta-inf/LGPL2.1' exclude 'meta-inf/rxjava.properties' exclude 'error_prone/Annotations.gwt.xml' exclude 'third_party/java_src/error_prone/project/annotations/Annotations.gwt.xml' exclude 'third_party/java_src/error_prone/project/annotations/Google_internal.gwt.xml' }
android DialogFragment出现 Can not perform this action after onSaveInstanceState
在使用android的DialogFragment的时候如果实在Activity在后台的时候调用dismiss函数的时候会出现Can not perform this action after onSaveInstanceState的异常,这个异常跟activity状态被保存之后又尝试提交一个 FragmentTransaction,原因是因为DialogFragment在调用dismiss函数的时候需要提交一个FragmentTransaction事务,但是在 onSaveInstanceState()函数调用之后,提交事务就会导致状态丢失,这样就会出现异常。不同的系统显示异常的方式不同。
为了避免这个问题就是在Activity在后台时或者onSaveInstanceState()和onStop()方法被调用后,就不直接调用dismiss函数改调用dismissAllowingStateLoss。还有一种方式是把这个DialogFragment状态记录下俩在Activity 启动 的时候在调用dismiss函数。
Android Gradle在APK META-INF中复制的重复文件
我尝试在我的Android应用程序中添加spring但应用程序不运行.
我真的不知道为什么我的跑步失败了.你能帮我解决这个问题,谢谢
这是我的app / build.gradle配置:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsversion "23.0.3"
defaultConfig {
applicationId "com.nizar.abdelhedi.accesscontrol"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
resValue "string", "host_name", "access-control-web/rest/roles/attendance"
}
}
configurations {
all*.exclude module: 'httpclient'
all*.exclude module: 'commons-logging'
}
packagingOptions {
exclude 'meta-inf/DEPENDENCIES.txt'
exclude 'meta-inf/LICENSE.txt'
exclude 'meta-inf/NOTICE.txt'
exclude 'meta-inf/NOTICE'
exclude 'meta-inf/LICENSE'
exclude 'meta-inf/DEPENDENCIES'
exclude 'meta-inf/notice.txt'
exclude 'meta-inf/license.txt'
exclude 'meta-inf/dependencies.txt'
exclude 'meta-inf/LGPL2.1'
}
dependencies {
compile filetree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.github.vajro:MaterialDesignLibrary:1.6'
compile 'com.github.blackfizz:eazegraph:1.2.2@aar'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.github.lecho:hellocharts-library:1.5.8@aar'
compile 'org.springframework:spring-context:4.2.7.RELEASE'
}
}
这是我的错误消息
information:Gradle tasks [:app:assembleDebug] :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE :app:prepareComAndroidSupportDesign2340Library UP-TO-DATE :app:prepareComAndroidSupportRecyclerviewV72340Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42340Library UP-TO-DATE :app:prepareComAndroidSupportSupportVectorDrawable2340Library UP-TO-DATE :app:prepareComGithubBlackfizzEazegraph122Library UP-TO-DATE :app:prepareComGithubLechoHellochartsLibrary158Library UP-TO-DATE :app:prepareComGithubVajroMaterialDesignLibrary16Library UP-TO-DATE :app:prepareDebugDependencies :app:compileDebugAidl UP-TO-DATE :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:mergeDebugShaders UP-TO-DATE :app:compileDebugShaders UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources UP-TO-DATE :app:processDebugManifest :app:processDebugResources :app:generateDebugSources :app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE :app:compileDebugJavaWithJavac UP-TO-DATE :app:compileDebugNdk UP-TO-DATE :app:compileDebugSources UP-TO-DATE :app:buildInfoDebugLoader :app:transformClassesWithExtractJarsForDebug UP-TO-DATE :app:transformClassesWithInstantRunVerifierForDebug UP-TO-DATE :app:transformClassesWithJavaResourcesverifierForDebug UP-TO-DATE :app:mergeDebugJniLibFolders UP-TO-DATE :app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE :app:processDebugJavaRes UP-TO-DATE :app:transformResourcesWithMergeJavaResForDebug Failed Error:Execution Failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK meta-inf/spring.schemas File1: C:\Users\abdelhedi\.gradle\caches\modules-2\files-2.1\org.springframework\spring-context\4.2.7.RELEASE\289f2906943827d37de89240dbac8fe4b315a838\spring-context-4.2.7.RELEASE.jar File2: C:\Users\abdelhedi\.gradle\caches\modules-2\files-2.1\org.springframework\spring-aop\4.2.7.RELEASE\bd65f97ba61fd3dcc0b74765d3fa388aeb388aa7\spring-aop-4.2.7.RELEASE.jar File3: C:\Users\abdelhedi\.gradle\caches\modules-2\files-2.1\org.springframework\spring-beans\4.2.7.RELEASE\ae0501728c0ee072e25cb5e11b63b883c0786b4b\spring-beans-4.2.7.RELEASE.jar information:BUILD Failed information:Total time: 2.634 secs information:1 error information:0 warnings information:See complete output in console
解决方法:
添加另一个到您的packagingOptions
exclude 'meta-inf/spring.schemas'
编辑:keeeeep加入它!看起来你有一大堆重复
每当您看到Exception时:在APK BLAH / blah.blah中复制的重复文件
添加另一个排除’BLAH / blah.blah’
Android Studio 0.4在APK META-INF / LICENSE.txt中复制的重复文件
android将Studio从0.3.7更新到0.4.0后,无法编译项目。我找到了一个解决方案:复制了重复的文件(Android Studio 0.4.0)
我将项目更新为gradle0.7。+,但是我不知道接下来的字符串应该放在哪里:
android {
packagingOptions {
exclude 'META-INF/LICENSE.txt'
}
}
我的logcat:日志
Execution failed for task ':Prog:packageDebug'.
> Duplicate files copied in APK META-INF/LICENSE.txt
File 1: /home/scijoker/AndroidStudioProjects/ProgProject/Prog/libs/httpclient-4.1.1.jar
File 2: /home/scijoker/AndroidStudioProjects/ProgProject/Prog/libs/httpclient-4.1.1.jar
PS开发在Ubuntu 13.04中
Android Studio 1.5.1在APK META-INF / NOTICE.txt中复制的重复文件commons-codec-1.9.jar …?
commons-codec-1.9.jar …复制在APK meta-inf / NOTICE.txt中复制的文件
> Error:Execution Failed for task > '':app:transformResourcesWithMergeJavaResForDebug''. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files > copied in APK meta-inf/NOTICE.txt File1: > C:Usersnandkishor.mewaraAndroidStudioProjectsNew folder > (2)CityRetailsapplibscommons-logging-1.2.jar File2: > C:Usersnandkishor.mewaraAndroidStudioProjectsNew folder > (2)CityRetailsapplibscommons-codec-1.9.jar
Android工作室在Linux PC上更快吗?
我可以在VMWare内的Linux上使用HAXM吗?
人行横道包装失败***错误:build筑ABI''armeabi-v7a''失败
在Android平板电脑上的Eclipse?
USB驱动程序华硕Nexus 7的Windows 7
在project / app / libs下载并粘贴''org.apache.http.legacy.jar''文件
并在“build.gradle”中添加依赖关系
如果你在Gradle中的依赖关系中有下面的行,那么不要在你的项目中添加任何其他的行来添加jar文件。
compile filetree(dir: ''libs'',include: [''*.jar'']) testCompile ''junit:junit:4.12''
不需要导入任何commons-logging-1.2.jar文件
总结
以上是小编为你收集整理的Android Studio 1.5.1在APK META-INF / NOTICE.txt中复制的重复文件commons-codec-1.9.jar …?全部内容。
如果觉得小编网站内容还不错,欢迎将小编网站推荐给好友。
今天关于android – 在interactivemedia中的APK error_prone / Annotations.gwt.xml中复制的重复文件的分享就到这里,希望大家有所收获,若想了解更多关于android DialogFragment出现 Can not perform this action after onSaveInstanceState、Android Gradle在APK META-INF中复制的重复文件、Android Studio 0.4在APK META-INF / LICENSE.txt中复制的重复文件、Android Studio 1.5.1在APK META-INF / NOTICE.txt中复制的重复文件commons-codec-1.9.jar …?等相关知识,可以在本站进行查询。
本文标签: