flutter 混合开发常用命令
作者:互联网
常用命令
open ~/.bash_profile
source ~/.bash_profile
flutter doctor
flutter doctor -v
flutter --version
Flutter clean
Flutter pub get
flutter create --template module my_flutter
flutter create -t module flutter_module
flutter create -i objc -a java flutter_project
adb version
open -e .zshrc ( touch .zshrc )
java -version #
open ./Library/android/sdk
adb devices
adb connect 127.0.0.1:5555
flutter build ios-framework --output=../flutter_framework
flutter build ios-framework
flutter build aar
flutter build ios --release
在Flutter module项目中执行flutter clean,执行完之后再执行 flutter build ios --release,生成iOS项目产物,再去iOS项目中尝试编译,即可成功
open ~/.ssh
cd ~/.ssh
ssh-keygen -t rsa -C "157710301@qq.com"
flutter_boost:
git:
url: 'https://github.com/alibaba/flutter_boost.git'
ref: 'v3.0-preview.17'
#ref: 'v3.0-hotfixes'
#ref: 'v3.0-beta.3'
我的电脑java路径
org.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home
Pod repo list
/Users/robotbona_lu/.cocoapods
------------------------------------bash_profile----------------------------------------
#JAVA配置
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home
CLASSPAHT=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH:
export JAVA_HOME
export CLASSPATH
export PATH
#ADB配置
export PATH=/Users/robotbona_lu/Documents/sdk/flutter/bin:$PATH
#export ANDROID_HOME="/Users/robotbona_lu/Documents/sdk/android-sdk-macosx"
export ANDROID_HOME="/Users/robotbona_lu/Library/Android/sdk"
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
标签:JAVA,--,常用命令,混合,export,HOME,PATH,flutter 来源: https://www.cnblogs.com/xiaoxiaolululu/p/15874509.html