flutter新建项目

1. 修改项目名称

android\app\src\main\AndroidManifest.xml

<application
        <!--项目名称-->
        android:label="project" 

2. 修改项目图标

android\app\src\main\res

3. 开启http支持

android\app\src\main\res\xml\network_security_config.xml

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <base-config cleartextTrafficPermitted="true"/>
</network-security-config>

android\app\src\main\AndroidManifest.xml

<application
	android:label="..."
    android:name="${applicationName}"
    android:icon="@mipmap/ic_launcher"
    android:networkSecurityConfig="@xml/network_security_config">

4. 更新镜像

android\build.gradle

5. 更新项目版本号,描述,及相关依赖

pubspec.yaml

资料

gradle地址

android\gradle\wrapper\gradle-wrapper.properties

中配置了gradle的下载地址,对应的本地目录为

C:\users{user name}.gradle\wrapper\dists

posted @ 2022-11-03 09:00  Bin_x  阅读(44)  评论(0编辑  收藏  举报