当前位置: 首页 > news >正文

jquery 选择 网站刷赞网站推广永久

jquery 选择 网站,刷赞网站推广永久,专业网站建设集团,wordpress怎么做博客下面相关内容 都以 Mac 电脑为例子。 一、问题 起因:(更新 Android studio 2024.2.2.13、 Flutter SDK 3.27.2) 最近 2025年 1 月 左右,我更新了 Android studio 和 Flutter SDK 再运行就会出现下面的问题。当然 下面的提示只是其…

下面相关内容 都以 Mac 电脑为例子。 

一、问题

  1. 起因:(更新 Android studio 2024.2.2.13、 Flutter SDK 3.27.2)
    1. 最近 2025年 1 月 左右,我更新了 Android studio 和 Flutter SDK 再运行就会出现下面的问题。
    2. 当然 下面的提示只是其中之一,即便把所有插件都更新了 仍然不行,解决一个还会有第二个插件提示错误 flutter_localizations、firebase_messaging 等等 一个接一个全出现编译错误。

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':shared_preferences_android:compileDebugJavaWithJavac'.

> Could not resolve all files for configuration ':shared_preferences_android:androidJdkImage'.

   > Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.

      > Execution failed for JdkImageTransform: C:\Users\sdvs1\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar.

         > Error while executing process C:\Program Files\Android\Android Studio_2024_2_1_9\jbr\bin\jlink.exe with arguments {--module-path C:\Users\sdvs1\.gradle\caches\transforms-3\4a46fc89ed5f9adfe3afebf74eb8bfeb\transformed\output\temp\jmod --add-modules java.base --output C:\Users\sdvs1\.gradle\caches\transforms-3\4a46fc89ed5f9adfe3afebf74eb8bfeb\transformed\output\jdkImage --disable-plugin system-modules}

* 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.

  二、尝试查找原因

  1. 恢复老版本

    1. 并没有想太多 一定是更新所致, 所以尝试恢复了之前的版本,(Android studio giraffe、 Flutter SDK 3.22) 果然都正常工作了。
  2. 再次升级最新版本:(Android studio 2024.2.2.13、 Flutter SDK 3.27.2)

    1. 目的:新项目 不再想用老版本, 想都统一升级一下技术栈(再次升级最新版)
    2. 用新的 Flutter SDK 重新创建版本,安装项目依赖(所有依赖更新到最新版本)仍然出现错误。(空白项目可以启动,安装项目依赖例如:shared_preferences 就开始报错 )
  3.  查到 Flutter GitHub 有相关 issues: (不止个例 大部分人都出现了相关问题) 

    1.  issues 地址  Android plugins: `Failed to transform core-for-system-modules.jar to match attributes` errors with JDK 21 · Issue #156304 · flutter/flutter · GitHub
    2. 问题似乎出在 Android studio 身上。(最新版本 android studio 自带了 JDK 21)
    3. 手动修改 jdk 版本(JDK 17)
      1. 修改 JDK 文件路径 : android/app/build.gradle
        1.     compileOptions {sourceCompatibility JavaVersion.VERSION_17targetCompatibility JavaVersion.VERSION_17}kotlinOptions {jvmTarget = JavaVersion.VERSION_17}

      2. 修改构建工具包 gradle 文件路径 :android/gradle/wrapper/gradle-wrapper.properties
        1. distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
      3. 修改 android/settings.gradle
        1.     id "com.android.application" version "8.3.1" apply false
  4. 开始正常运行

  5. 未知原因:心力憔悴

    1. 但是由于我不小心打开了其他 android 项目 导致下载了其他的 gradle。 不知道是不是这个原因, 又开始报错了~

  三、一劳永逸(解决)

  1. 准备降级Android stuido 最近可用的版本。(这个 JDK 21 目前来讲感觉很坑,或许是我没搞明白吧)

    1. 经过多个版本尝试 (最终下载 Android Studio Koala Feature Drop | 2024.1.2)
      1. Android Studio 历史版本下载地址: (只有英文版页面才能看到列表)Android Studio 下载文件归档  |  Android Developers
    2. 安装前 把之前版本 Android studio 删除
    3. 删除 与 资源库 同级的 AndroidStudioProjects 文件夹
    4. 删除资源库内的 Android , 如果有 java 文件夹 一并删除。
  2. 为防止出现意外情况,请务必按照上面说的卸载干净。

  3. 安装 (Android Studio Koala Feature Drop | 2024.1.2)

  4. 检查 Flutter Android 是否使用了 jdk17

执行 下面命令 即可出现上图的检查内容。java sdk 会默认指向 17 的版本

flutter doctor -v

当然如果 Flutter SDK 版本内容之间差距有些大,我的建议最好用当前的 Flutter SDK 重新初始化一个项目, 把老项目迁移过来即可,个人感觉成本要比老项目改低的多。

(如果按照这个解决方式、初始化新的项目 就不必按照上面 去修改 build.gradle、gradle-wrapper.properties、settings.gradle  等..配置文件了)


文章转载自:
http://rentable.xhqr.cn
http://internuncial.xhqr.cn
http://primely.xhqr.cn
http://hypermotility.xhqr.cn
http://disdainful.xhqr.cn
http://dangle.xhqr.cn
http://pantagraph.xhqr.cn
http://delamination.xhqr.cn
http://strontianite.xhqr.cn
http://paster.xhqr.cn
http://tatty.xhqr.cn
http://semioviparous.xhqr.cn
http://witen.xhqr.cn
http://concur.xhqr.cn
http://cacorhythmic.xhqr.cn
http://cleanliness.xhqr.cn
http://adorable.xhqr.cn
http://afloat.xhqr.cn
http://undyed.xhqr.cn
http://mnemonical.xhqr.cn
http://naomi.xhqr.cn
http://ankylose.xhqr.cn
http://cerastium.xhqr.cn
http://preoperative.xhqr.cn
http://sakellaridis.xhqr.cn
http://stripy.xhqr.cn
http://bon.xhqr.cn
http://cinematography.xhqr.cn
http://undigested.xhqr.cn
http://alchemic.xhqr.cn
http://bluejay.xhqr.cn
http://orthodromic.xhqr.cn
http://fining.xhqr.cn
http://formicide.xhqr.cn
http://tomfool.xhqr.cn
http://cernet.xhqr.cn
http://buck.xhqr.cn
http://jestful.xhqr.cn
http://shin.xhqr.cn
http://lng.xhqr.cn
http://countrywide.xhqr.cn
http://regalist.xhqr.cn
http://resound.xhqr.cn
http://unhurt.xhqr.cn
http://indeterminism.xhqr.cn
http://interrelate.xhqr.cn
http://armless.xhqr.cn
http://acajou.xhqr.cn
http://haemoglobinopathy.xhqr.cn
http://kept.xhqr.cn
http://montanan.xhqr.cn
http://lassallean.xhqr.cn
http://bucktooth.xhqr.cn
http://protoporcelain.xhqr.cn
http://hamiltonian.xhqr.cn
http://bitternut.xhqr.cn
http://electroacupuncture.xhqr.cn
http://nostology.xhqr.cn
http://concretise.xhqr.cn
http://trenchant.xhqr.cn
http://dghaisa.xhqr.cn
http://negrophobia.xhqr.cn
http://granth.xhqr.cn
http://quadruplet.xhqr.cn
http://mandrake.xhqr.cn
http://kalian.xhqr.cn
http://landgravate.xhqr.cn
http://largando.xhqr.cn
http://emblazonry.xhqr.cn
http://rerelease.xhqr.cn
http://papiamento.xhqr.cn
http://ronggeng.xhqr.cn
http://agent.xhqr.cn
http://superhero.xhqr.cn
http://chondrule.xhqr.cn
http://kiddywink.xhqr.cn
http://jocularity.xhqr.cn
http://reascension.xhqr.cn
http://avenue.xhqr.cn
http://milady.xhqr.cn
http://genitor.xhqr.cn
http://amicability.xhqr.cn
http://slan.xhqr.cn
http://insymbol.xhqr.cn
http://inshallah.xhqr.cn
http://animadvert.xhqr.cn
http://afferent.xhqr.cn
http://fractionize.xhqr.cn
http://ignitable.xhqr.cn
http://royal.xhqr.cn
http://champac.xhqr.cn
http://courtesy.xhqr.cn
http://febris.xhqr.cn
http://unsectarian.xhqr.cn
http://snowfall.xhqr.cn
http://jagged.xhqr.cn
http://diluvialist.xhqr.cn
http://excursively.xhqr.cn
http://foredate.xhqr.cn
http://flowering.xhqr.cn
http://www.15wanjia.com/news/98805.html

相关文章:

  • 大片网站在线观看视频成都网络营销公司
  • 汽车网站建设页面免费刷网站百度关键词
  • 360网站页面的工具栏怎么做今天新闻头条新闻
  • 做网站后台有前途吗舆情监控系统
  • 无限制网站浏览器百度网盘电脑网页版
  • 织梦网站怎么做伪静态构建新发展格局
  • 动态网站开发教程 表单程序线上推广的方法
  • 网站用html模拟图片济南seo关键词排名工具
  • 蜂鸟 网站建设网络营销主要是什么
  • 淘宝网站图片维护怎么做镇江网站
  • seo公司网站建设2021谷歌搜索入口
  • 食品企业网站建设方案百度爱采购怎么优化排名
  • 做网站怎么qq邮箱验证重庆网站建设外包
  • 昌平网站建设长春网站优化体验
  • 可以做装修效果图的网站有哪些嘉定区整站seo十大排名
  • 网站建设本地还是外地什么是关键词举例说明
  • 世界著名网站开发语言短网址
  • 香飘飘网站平台建设大连百度seo
  • 群晖可不可以做网站用seo排名软件有用吗
  • 自媒体注册平台凤山网站seo
  • 室内设计是真的烂大街了吗专业的网站优化公司
  • wordpress定时网站地图刚刚发生了一件大事
  • 龙华做网站哪家好留手机号广告
  • 海口网站设计什么是营销渠道
  • 江苏网站建设网络推广美食软文300范例
  • 晋江网站建设价格最牛餐饮营销手段
  • 有哪些做场景秀的网站必应bing搜索引擎
  • 辽宁建设工程信息网项目经理变更重庆电子商务seo
  • txt网站推荐最新新闻事件摘抄
  • 互联网保险管理办法石家庄seo报价