关于更新旧版环境:必做:。
Flutter开发环境配置踩坑之cmdline-tools component is missing。应为flutter开发需要加上他
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
andstu最好是卸载安装新版,旧版直接升级出问题
flutter sdk 也是删了重新下代码覆盖
。+++++++++++++++++++++++++++++++++++++++++++++++++
下面的问题
总是提示JDK没找到,是新版2023andstu的问题可以通过当我将安卓工作室从海豚更新到电鳗时,我遇到了这个问题。我相信修补过程可能导致 jre 目录中的 java 捆绑包被删除。这就是我解决它的方式。
复制 C:\Program Files\Android\Android Studio\jbr 中的文件并粘贴到 C:\Program Files\Android\Android Studio\jre 中
运行颤振医生
联网有的时候翻有的时候不翻,建议先去依赖库
点一遍插件升级再运行。
FAILURE: Build failed with an exception.
- What went wrong:Could not update C:\Users\Embrace-IT.gradle\caches\4.4\file-changes\last-build.bin> C:\Users\Embrace-IT.gradle\caches\4.4\file-changes\last-build.bin (Access is denied)
———————————————————————————————————————
j解决:https://stackoverflow.com/questions/51650711/could-not-update-gradle-caches-4-4-file-changes-last-build-bin
这对我来说是固定的:如果您有一个新项目,请删除路径“ C:\Users\username\ .gradle\caches\4.4\file-changes ”中的“ last-build.bin ”文件。我不知道是否会影响旧文件。
其他版本:如果您有一个新项目,请删除路径“ C:\Users\username\ .gradle\caches\xx\file-changes ”中的“ last-build.bin ”文件。我不知道是否会影响旧文件。
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Cannot resolve symbol ‘GradleException’
::def flutterRoot = localProperties.getProperty(‘flutter.sdk’)
if (flutterRoot == null) {
throw GradleException(“Flutter SDK not found. Define location with flutter.sdk in the local.properties file.”)
}
—————————————————————————————————————————
只替换为
的键GradleException()到FileNotFoundException()throw new GradleException(“could not read version.properties”)
进入
throw new FileNotFoundException(“could not read version.properties”)
您还可以通过删除gradleException之前删除new关键字来解决此问题!!!!!!!!!!!!!!!!!!!!!!
throw GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.pro
+++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
网页版提示下载失败:Failed to download https://chrome-infra-packages.appspot.com/dl/flutter/web/canvaskit_bundle/+/8MSYG
windows环境运行flutter————————————————————————————————————————————————————
配置环境变量重启即可
FLUTTER_STORAGE_BASE_URL
https://storage.flutter-io.cn
或者set FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn