Android Studio 针对部分导入项目报错的问题解决方案_导入project出错android studio_伊伊一颗菜
Android Studio
用于自学总结
防止二次踩坑
相关知识点
(2条消息) 如何创建android studio项目及线性布局_菜鸟码农阿庆的博客-CSDN博客_android studio线性布局
(2条消息) 安卓18:Android Studio界面布局相关项目总结_@thelakes的博客-CSDN博客_android studio项目总结
(2条消息) Android RecyclerView最全使用详解_Teacher.Hu的博客-CSDN博客_android recyclerview
导入一个新项目会报错
有以下几个注意点:
问题一:由于Android Gradle plugin 需要 Java 11,而环境变量所配置的 JDK 是1.8 ,所以尝试更改JDK 配置
最后点击File–>Sync Project with Grade Files
问题二:
We recommend using a newer Android Gradle plugin to use compileSdk = 33
This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32
This warning can be suppressed by adding
android.suppressUnsupportedCompileSdk=33
to this project's gradle.properties
The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33
翻译即:
我们建议使用一个更新的Android Gradle插件来使用compileSdk = 33
这个Android Gradle插件(7.1.2)已经经过了compileSdk = 32的测试
可以通过添加来抑制此警告
android.suppressUnsupportedCompileSdk = 33
到这个项目的gradle.properties
构建将继续进行,但强烈建议您将项目更新为
使用使用compileSdk = 33测试过的更新的Android Gradle Plugin
大意是得更新到compileSdk = 33
解决方法参考:
(7条消息) Android Studio | 修改CompileSDKVersion | 修改targetSdkVersion_stone_fall的博客-CSDN博客
问题三:
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'com.android.internal.application'.
在gradle.properties添加 android.overridePathCheck=true即可
如图
解决方法:参考(7条消息) 解决Gradle报错Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plu_甜心超人ww的博客-CSDN博客
有坑会后续再补…
相关文章
- 大数据概述、前世今生、处理流程、学习路线、开发工具详解_cui_yonghua
- 编译方式安装nginx_你是我的导航
- 将前端vue项目部署到nginx中,vue中publicPath自动拼接一个路径_小麟有点小?_nginx publicpath vue
- Nginx+Tomcat负载均衡、动静分离_站在这别动,我去给你买橘子
- 阿里云 window下 nginx 安装https证书的配置。_hanchufeng2020
- NGINX 域名及IP白名单拦截,Referer防盗链设置_onenote_1_nginx referer白名单
- yum安装nginx,并部署前端vue项目到虚拟机上运行_great-sun_yum安装vue
- nginx的stream使用实践,ssh代理,外网映射_听风语-闻风吟_nginx stream用法
- Ubuntu安装nginx并部署静态网站_纪梵希学编程
- 手动安装Nginx与MySQL_吉吉吉吉吉吉吉吉吉吉_nginx 安装mysql
- vue发布步骤_GGBOY___vue 发布
- Nginx日志配置、错误界面配置、流量控制 第九天_fajixianshouhu_nginx 日志限制
- 使用Nginx访问日志统计PV和UV_刷题刷到手抽筋
- 服务器安装Nginx步骤及常见问题解决方案_磨刀霍霍向牛羊_nginx无法安装
- CentOS8搭建Nginx+RTMP直播服务器笔记1_老富2012
- 将nginx设置为开机自启动的配置_健康平安的活着_nginx配置自启动