打开项目出现的问题如下:
解决的方案如下:
在build文件下添加:implementation "androidx.activity:activity-ktx:1.3.1"
使用的地方没有报错,但是运行代码,点击功能会报Can only use lower 16 bits for requestCode
这个时候我们只需要将implementation "androidx.activity:activity-ktx:1.3.1"删除,重新添加一个
解决:
implementation 'androidx.appcompat:appcompat:1.3.0-rc01'
or
implementation 'androidx.appcompat:appcompat:1.3.1'然后同步build文件问题就解决了啊