当我在连接了removeView
插件的Android Studio中创建“ flutter项目”时,没有创建flutter-i18n
。因此,没有in doc所描述的用于国际化的工作机制。
我的设置是:
lib/generated/i18n.dart
[✓] 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)
答案 0 :(得分:4)
只需检查.idea文件夹中是否存在 misc.xml 文件。
<?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>
答案 1 :(得分:0)
这都是由于Android Studio-3.3.1错误所致... 一旦我将subj降级到3.2,一切都正确了。