一、
com.android.tools.build:gradle:3.2.1
问题log:
Error:com.android.builder.merge.DuplicateRelativeFileException: More than one file was found with OS independent path 'META-INF/DEPENDENCIES'
解决方法:
在Android module(非Android library module)中的android标签下添加
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
}
原因:使用网络库httpcore和httpmime后编译出错
二、
This custom view should extend android.support.v7.widget.AppCompatImageView instead less... (Ctrl+F1)
In order to support features such as tinting, the appcompat library will automatically load special appcompat replacements for the builtin widgets. However, this does not work for your own custom views. Instead of extending the android.widget classes directly, you should instead extend one of the delegate classes in android.support.v7.widget.AppCompat. Issue id: AppCompatCustomView
网友评论