gpt4 book ai didi

android-studio - 安卓工作室 : plugin flutter-i18n does not work

转载 作者:IT王子 更新时间:2023-10-29 07:08:28 26 4
gpt4 key购买 nike

当我在连接了 flutter-i18n 插件的 Android Studio 中创建“flutter 项目”时,没有创建 lib/generated/i18n.dart。因此,没有描述的国际化工作机制 in doc .

我的设置是:

[✓] Flutter (Channel stable, v1.0.0, on Linux, locale en_US.UTF-8)
• Flutter version 1.0.0 at /home/valerius/DevTools/Flutter
• Framework revision 5391447fae (3 months ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /home/valerius/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /home/valerius/DevTools/AStudio/182.5264788/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.

[✓] Android Studio (version 3.3)
• Android Studio at /home/valerius/DevTools/AStudio/182.5264788
• Flutter plugin version 33.1.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

Android Studio 3.3.1
Build #AI-182.5107.16.33.5264788, built on January 29, 2019
JRE: 1.8.0_152-release-1248-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-45-generic

最佳答案

只需检查文件:misc.xml 是否存在于 .idea 文件夹中。

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="NodePackageJsonFileManager">
<packageJsonPaths />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

Issue: https://github.com/long1eu/flutter_i18n/issues/37

关于android-studio - 安卓工作室 : plugin flutter-i18n does not work,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54861411/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com