惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
S
Schneier on Security
罗磊的独立博客
有赞技术团队
有赞技术团队
U
Unit 42
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
F
Full Disclosure
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
爱范儿
爱范儿
Y
Y Combinator Blog
aimingoo的专栏
aimingoo的专栏
B
Blog
量子位
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
W
WeLiveSecurity
Recent Announcements
Recent Announcements
G
GRAHAM CLULEY
大猫的无限游戏
大猫的无限游戏
F
Fortinet All Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
Spread Privacy
Spread Privacy
Cisco Talos Blog
Cisco Talos Blog
The Cloudflare Blog
D
Docker
Hugging Face - Blog
Hugging Face - Blog
I
InfoQ
Recorded Future
Recorded Future
H
Help Net Security
L
LINUX DO - 热门话题
The Hacker News
The Hacker News
博客园 - 叶小钗
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Exploit Database - CXSecurity.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
Threat Research - Cisco Blogs
Hacker News: Ask HN
Hacker News: Ask HN
MongoDB | Blog
MongoDB | Blog
Forbes - Security
Forbes - Security
Vercel News
Vercel News
G
Google Developers Blog
T
Troy Hunt's Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Cyberwarzone
Cyberwarzone
T
Tor Project blog
Microsoft Security Blog
Microsoft Security Blog
P
Proofpoint News Feed

博客园 - 木子东晓东

当androidStudio下载gradle出错时,切换到国内镜像的方法 DevEco Studio 调用hdc的方法 将字符串数字转换为薪资类型10000转换为10,000 使用magicAPI对接python 文件,上传参数获取不到回参问题 使用python 实现自动发送邮件功能,并上传到宝塔 py集成宝塔,flask已加入模块,无法实现自动发送邮件功能 谷歌浏览器降级的方法-及chromedriver 下载文件 若依框架导入阿里OSS报错问题解决方案 解决若依框架与tailwindcss 样式冲突问题 若依框架前期启动工作 运行若依时报错 MAC 使用docker 启动宝塔 MAC flutter初步学习 2 iOS 审核被拒,日志中找不到苹果返回的creashlog的解决办法 flutter学习之添加第三方应用 MAC flutter初步学习 python Django 连接数据库失败的解决方法 Python之学习菜鸟教程踩的坑 Python学习之环境搭建
运行Flutter 真机运行安卓报错
木子东晓东 · 2024-11-14 · via 博客园 - 木子东晓东

当真机运行报以下错误时

* What went wrong: A problem occurred evaluating project ':app'. > Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of the following options: - changing the IDE settings. - changing the JAVA_HOME environment variable. - changing `org.gradle.java.home` in `gradle.properties`. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org

说明java的版本太低了

在Oracle 中下载java11的版本。下载结束后

 放置在这个文件下面

配置.bash_profile及.zshrc文件路径

 配置结束后用

source ~/.zshrc

source ~/.bash_profile

生效

java -version 查看是否已生效

进入flutter项目

进入到这个文件内/android/gradle.properties

 添加java11路径

然后运行,会有很长一段等待时间,在下载。

这个时候需要打开梯子,通过梯子来下载对应程式,系统自己跑

下载完成后,就能在真机上运行了