目录
问题:Access can be package-private
问题:OPPO手机调试无法安装
代码检查功能:https://blog.csdn.net/u013719138/article/details/79276370
问题:w: [kapt] Incremental annotation processing requested, but
描述:
w: [kapt] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: androidx.room.RoomProcessor (DYNAMIC), android.databinding.annotationprocessor.ProcessDataBinding (DYNAMIC).
解决:
在 gradle.properties文件中添加
kapt.incremental.apt = false
或者 将 kotlin_version版本降低
问题:Unsupported Modules Detected: Compilation is not supported for following module
描述:
Unsupported Modules Detected: Compilation is not supported for following modules: lib-zxing. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
解决:
删除.idea目录
删除所有.iml文件
关闭android studio重新打开项目
问题:Access can be package-private
描述:
Inspection info: Reports all fields, methods or classes, found in the specified inspection scope, that may have their access modifier narrowed down.
解决:
共有换成私有
此检查报告了所有在指定的检查范围内找到的字段、方法或类,可以使它们的访问修饰符缩小
问题:OPPO手机调试无法安装
描述:
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_TEST_ONLY
Installation failed due to: 'null'
解决:
在 gradle.properties文件中添加
android.injected.testOnly = false
OK.