当前位置: 移动技术网 > 移动技术>移动开发>Android > Android Studio Flutter项目如何打开Android/iOS工程

Android Studio Flutter项目如何打开Android/iOS工程

2020年08月05日  | 移动技术网移动技术  | 我要评论

1.在android目录下 新建一个 xxx_android.iml 文件

2.复制以下内容 到xxx_android.iml 文件中 (xxx为项目名称)

<?xml version="1.0" encoding="UTF-8"?> <module type="JAVA_MODULE" version="4"> <component name="FacetManager"> <facet type="android" name="Android"> <configuration> <option name="ALLOW_USER_CONFIGURATION" value="false" /> <option name="GEN_FOLDER_RELATIVE_PATH_APT" value="/gen" /> <option name="GEN_FOLDER_RELATIVE_PATH_AIDL" value="/gen" /> <option name="MANIFEST_FILE_RELATIVE_PATH" value="/app/src/main/AndroidManifest.xml" /> <option name="RES_FOLDER_RELATIVE_PATH" value="/app/src/main/res" /> <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/app/src/main/assets" /> <option name="LIBS_FOLDER_RELATIVE_PATH" value="/app/src/main/libs" /> <option name="PROGUARD_LOGS_FOLDER_RELATIVE_PATH" value="/app/src/main/proguard_logs" /> </configuration> </facet> </component> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/app/src/main/java" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" /> </content> <orderEntry type="jdk" jdkName="Android API 25 Platform" jdkType="Android SDK" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="Flutter for Android" level="project" /> </component> </module> 

右键打开安卓工程
在这里插入图片描述
右键打开iOS工程
在这里插入图片描述

本文地址:https://blog.csdn.net/timtian008/article/details/107786966

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网