androidstudio BUG 记录

Bug记录
XML中出现错误:
In Gradle projects, always use http://schemas.Android.com/apk/res-auto for custom attributes

http://schemas.android.com/apk/res/com.xxx.xxx

解决方案:
根据提示信息修改为:http://schemas.android.com/apk/res-auto

从github上面clone项目的时候报错如下:
“Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer”

报错原因和解决方法如下:

然后找到你导入的库的文件夹,点开,打开其build.gradle文件,
然后你注释掉最后一行代码(与maven有关的,比如我的是://apply from: 'maven-push.gradle'
然后再build一下就好了

报错: Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha3

“解决办法:a. 点击Tools>Android>SDK Manager b. 点击SDK Tools标签
c.选择show pack details,找到support repository->constraintlayout for android下面可以看到现在你 的系统中安装了constraint-layout:1.0.0-alpha3没有
d.选择你想安装的版本,点apply”

报错: Error:Execution failed for task ‘:app:processDebugManifest’.

Manifest merger failed with multiple errors, see logs 报错的解决方法如下

原因
minSdkVersion
引用lib版本号高于app最小版本号
解决方法:
方法一.:把lib版本号修改为<= App最小版本号,即可。

方法二:修改app中的Manifest文件。如有多个lib,用逗号分隔。

猜你喜欢

转载自blog.csdn.net/pengpeng952789/article/details/54572611