Him*_*ani 9 android-studio flutter
我是扑的新手。我想将 flutter 的 (android) 模块打开到另一个窗口。但是在 java 文件或任何其他 android 文件中没有可见的选项。

这是我的颤振医生:
Doctor summary (to see all details, run flutter doctor -v):
[?] Flutter (Channel beta, v1.7.8+hotfix.4, on Mac OS X 10.14.5 18F132, locale en-IN)
[?] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[?] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[!] iOS tools - develop for iOS devices
? libimobiledevice and ideviceinstaller are not installed. To install with Brew, run:
brew update
brew install --HEAD usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
[?] Android Studio (version 3.1)
[!] VS Code (version 1.42.1)
? Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[?] Connected device (1 available)
! Doctor found issues in 2 categories.
Run Code Online (Sandbox Code Playgroud)
Der*_*k K 19
该问题是由缺少.iml项目文件引起的。这些文件会自动添加到.gitignore文件中,但它们不应该。要解决这个问题:
.idea文件夹。[project_name].imlandroid/[project_name]_android.iml为避免将来发生这种情况,请确保 .iml 文件未在 gitignore 中排除。有一个关于这个主题的Github 问题。
Tar*_*qul 17
在 android studio 中创建一个文件 android name
[项目名称]_android.iml
复制粘贴以下代码
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Dart SDK" level="project" />
</component>
</module>
Run Code Online (Sandbox Code Playgroud)
另一个解决方案:您可以从另一个应用程序复制此文件并重命名为 [project_name]_android.iml,然后粘贴到您的项目中
对我有用的最简单的提示:在 android 下创建新文件,给它命名如下:
[project_name]_android.iml
Run Code Online (Sandbox Code Playgroud)
将其留空,然后重新尝试该选项。像魅力一样工作!
| 归档时间: |
|
| 查看次数: |
5237 次 |
| 最近记录: |