当前位置:网站首页>novel research

novel research

2022-08-09 12:21:00 Leibniz infinity sml

links

github novel topic

novel 采集架子
移动端novel阅读器 flutter_novel

flutter

flutter2.8.1 windows环境搭建

参考

flutter 2.8.1 for window10 环境搭建

set JAVA_HOME=d:\jdk1.8.0_111
set PATH=%JAVA_HOME%\bin;%PATH%

set PATH=F:\flutter_windows_2.8.1-stable\flutter\bin;%PATH%

set ANDROID_HOME=C:\Users\z\AppData\Local\Android\Sdk
set PATH=%PATH%;%ANDROID_HOME%\tools
set PATH=%PATH%;%ANDROID_HOME%\platform-tools\

set PUB_HOSTED_URL=https://pub.flutter-io.cn
set FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

#尝试运行:以验证环境是否正常
#flutter doctor

%ANDROID_HOME%\tools\bin\sdkmanager.bat  --install "cmdline-tools;latest"
flutter doctor --android-licenses

android sdk安装本项目所用的 api level 28
在这里插入图片描述

 国内仓库加速 android/build.gradle
buildscript {
    
//...
    //国内仓库加速
    repositories {
    
        maven{
    url 'https://maven.aliyun.com/repository/google'}
        maven{
    url 'https://maven.aliyun.com/repository/jcenter'}
        #google()
        #jcenter()
    }
//...
}

allprojects {
    
    repositories {
    
    //国内仓库加速
        maven{
    url 'https://maven.aliyun.com/repository/google'}
        maven{
    url 'https://maven.aliyun.com/repository/jcenter'}
        #google()
        #jcenter()
    }
}
//...

flutter 运行app

#插上android手机, 打开调试模式
flutter devices
#应该有显示到该手机

git clone https://github.com/lwlizhe/flutter_novel.git
cd  flutter_novel
git checkout dev_2.0

flutter run
#在手机上正常安装apk 并运行
原网站

版权声明
本文为[Leibniz infinity sml]所创,转载请带上原文链接,感谢
https://blog.csdn.net/hfcaoguilin/article/details/126239719