Andriod Studio3 遇到问题及解决方案

目录

问题: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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值