第三方依赖 jar重复
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForArmDebug'.
com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/maven/commons-io/commons-io/pom.xml
File1: E:\Project\MyApp\app\build\intermediates\exploded-aar\com.microsoft.projectoxford\vision\0.5.0\jars\libs\commons-io-2.4.jar
File2: E:\Project\MyApp\app\build\intermediates\exploded-aar\com.microsoft.projectoxford\emotion\1.0.0\jars\libs\commons-io-2.4.jar
原因:这两个jar中都有一个DEPENDENCIES,导致编译或者打包合并时出现错误。
解决:在packagingOptions中加入下面配置exclude 'META-INF/maven/commons-io/commons-io/pom.xml'
更新AS,启动出现错误
java.lang.Runtime Exception: com.intellij.ide.plugins.Plugin Manager
$Startup Aborted Exception: Fatal error initializing 'com.intellij.openapi.action System.Action Manager'
解决:重新下载,覆盖安装。
git push -u origin master 报错
To github.com:sky1339m/Test.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'git@github.com:sky1339m/Test.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
原因:github中的README.md文件不在本地代码目录中
解决:git pull --rebase origin master
git pull --rebase origin master
From github.com:sky1339m/NetworkGroup
- branch master -> FETCH_HEAD
fatal: refusing to merge unrelated histories
原因:这是两个不同的项目,要把两个不同的项目合并
解决:git pull origin master ----allow-unrelated-histories
( i 编辑模式 ESC-->退出vim :q!)
没有ssh 不提醒密码
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
原因:权限不够
解决:1.配置ssh 2.不知道
AS 程序包org.junit不存在
当前module未引用,关联的library中有junit包,clear project 等操作无用
解决:切换下SDK版本Project Structure
回调数据是空
预设类型
回调解析类型
报错
原因:解析类型和预设类型不一致
解决:统一类型
切换分支
error: you need to resolve your current index first
解决:啦啦啦
网友评论