很久没有新建项目文件,突然新建项目文件的时候,运行项目生产的Hello world的例子就报了这个错误。
处理方法:
app目录下的build.gradle文件配置有问题,回退一下依赖的版本就解决了。
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.6.0'
很久没有新建项目文件,突然新建项目文件的时候,运行项目生产的Hello world的例子就报了这个错误。
处理方法:
app目录下的build.gradle文件配置有问题,回退一下依赖的版本就解决了。
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.6.0'