Android Studio Warning集(实时更新中)

1. Android在打包编译时出现如下警告:

警告:

    *******************************\app\build.gradle

    Warning:The `android.dexOptions.incremental` property is deprecated and it has no effect on the build process.

解释:

Java compilation in 2.1.0-rc1 (2016/4/22)之后,android.dexOptions.incremental的操作默认开启。所以不用在 build.gradle 文件中重复设置。

解决:

删除

2. Android在打包编译时出现如下警告:

*******************************\app\build.gradle

    Warning:WARNING: Dependency org.json:json:20170516 is ignored for release as it may be conflicting with the internal version provided by Android.

解释:

如上,远程依赖包和Android内部版本冲突。

解决:

找到org.json:json:20170516,删除,删除后运行检查是否有报错

你可能感兴趣的:(Android Studio Warning集(实时更新中))