当前位置:网站首页>flutter配置国内镜像,连接真机
flutter配置国内镜像,连接真机
2022-06-29 06:32:00 【Cold Snowflakes】
在 flutter\packages\flutter_tools\gradle 文件夹下,找到 flutter.gradle 文件
buildscript {
repositories {
maven {
url 'https://maven.aliyun.com/repository/google'}
maven {
url 'https://maven.aliyun.com/repository/central' }
maven {
url 'https://maven.aliyun.com/nexus/content/groups/public'}
google()
mavenCentral()
// maven {
url 'https://dl.google.com/dl/android/maven2/'}
}
dependencies {
/* When bumping, also update ndkVersion above. */
classpath 'com.android.tools.build:gradle:4.1.0'
}
}
此处是为了,flutter run 时,不要太慢。
在flutter项目的 android/build.gradle 文件中,同样进行修改。
连接真机
先下载好,Goole Usb Driver。
手机打开,USB调试模式,连接USB配置(多媒体传输)
flutter devices
flutter run
flutter run卡在Running Gradle task ‘assembleDebug’
Gradle下载问题
vscode开发fluter时连接真机的注意点
运行Flutter run 慢
Android国内Maven仓库
vscode搭建原生app开发环境
边栏推荐
- Regular expressions for shell script values
- Rich material libraries make modeling easy and efficient for developers
- 2-nitro-5,10,15,20-tetra (4-methylphenyl) porphyrin copper (no2tmpp) Cu) /2-nitro-5,10,15,20-tetra (4-methylphenyl) porphyrin (no2tmpp) H2) Qiyue porphyrin supply
- Longest substring between two identical characters of leetcode simple question
- 'only_ full_ group_ The influence of by'sql mode on group by and its treatment
- The first commercial spacewalk of mankind is finalized! Musk SpaceX announced a new round of space travel plan, and the American rich became repeat customers
- Review of MySQL knowledge points
- What are the uses of static?
- JIRA basic usage sharing
- Devops development, operation and maintenance Basics: using Jenkins to automatically build projects and notify by email
猜你喜欢

Introduction to Ceres Quartet

Problems with MySQL database query

Internet enterprises need CRM software to help
![[C language series] - branch and loop statements](/img/bf/656c9189b4ab4387c5acab1c4a2804.jpg)
[C language series] - branch and loop statements

Establishing the development environment of esp8266

Clickhouse data type

Pytest (7) -yield and termination function

Pointer from beginner to advanced (2)
![Meso tetra (4-N, N, n-trimethylaminophenyl) porphyrin (ttmapp) /meso tetra - [4- (BOC threonine) aminophenyl] porphyrin (TAPP thr BOC) supplied by Qiyue](/img/a9/0869c4f39a96cff63d1e310292c46d.jpg)
Meso tetra (4-N, N, n-trimethylaminophenyl) porphyrin (ttmapp) /meso tetra - [4- (BOC threonine) aminophenyl] porphyrin (TAPP thr BOC) supplied by Qiyue

Call the computer calculator and use it to convert several base numbers
随机推荐
Segment in Lucene
Design of leetcode simple problem goal parser
Difference between URI and URL
Regular expressions for shell script values
5- (4-benzoimide phenyl) - 10,15,20-triphenylporphyrin (battph2) and its Zn complex (battpzn) / tetra (4-aminophenyl) porphyrin (tapph2) Qiyue supply
Why can't the article be posted?
What is the "danksharding" of V God Kop on Valentine's day?
2-nitro-5,10,15,20-tetra (3,5-dimethoxyphenyl) porphyrin (no2tdmpp) H2) /5,10,15,20-tetra (4-methylphenyl) porphyrin (TMPP) H2) Qiyue porphyrin products
QT (x): innosetup for software packaging
Pytest (7) -yield and termination function
Can redis implement hot standby?
Testing grpc service with grpcui
Rich material libraries make modeling easy and efficient for developers
2022.02.15 - 240. Lucky number in matrix
2022.02.15
Leetcode simple problem building arrays with stack operation
2022.02.14 - 239. A single element in an ordered array
力扣每日一题-第30天-594.最长和谐子序列
Will the order of where conditions in MySQL affect the union index? Will where 1 =1 affect the use of the index? Does where 1 =1 affect the use of indexes?
Hustoj SPJ example