当前位置:网站首页>After two days of tossing and turning, I finally wrote my first fluent app, which almost tortured me into a nervous breakdown
After two days of tossing and turning, I finally wrote my first fluent app, which almost tortured me into a nervous breakdown
2022-07-24 08:37:00 【lmhopen】
Read headlines recently , Push me every day flutter, say flutter How well , How advanced , How simple , I can't resist the temptation, so I'll try it , Unexpectedly, I fell into a bottomless pit .
Actually flutter The language itself is quite simple and convenient , It's also easy to program Android , The key is that it is extremely difficult to build the environment and compile the program , In the middle bug There are countless pits , Most people have collapsed at this stage , Not to mention programming .
Let's talk about what I can still remember and solve ,
download android studio According to the regular website, you can't , Because it is blocked by the domestic , Put the google.com Change to google.cn
Don't translate the webpage into Chinese when clicking download , Otherwise, the connection cannot be opened ,
When installing virtual Android on the computer for debugging , This is another huge pit , There are countless problems , I have used all kinds of methods ,android studio Just don't recognize virtual machines , Later, I don't remember how I solved it .
It seems to be necessary adb Connect ,
The program is written , How to generate apk Looking for half a day , Originally, I had to use the command line. I had to write it in the directory of the project flutter build apk
A compilation of various errors, various problems , Emerge in endlessly , Using various methods on the Internet, the more solutions, the more chaos , It can't be solved ,
One of them is that the program should be downloaded when compiling gredle package , But the website is blocked , Or the bag is too big , Always fail
Running Gradle task ‘assembleRelease’… Always stay at this step and fail , I used the package under Xunlei to add it to some directories , But all kinds of compilation failed .
There are many other problems android studio The problem of setting , Change the settings to solve ,android studio It's too slow to use too laggy , If you don't need it in the future .
I still remember my last solution is as follows ,
Then the program automatically upgrades and downloads . A bunch of warnings ,
I'll write on the command line flutter build apk
Then it compiles successfully ,
By this time, I have spent more than two days , I don't want to put the program into the virtual machine to debug , Because it's too slow and too laggy , It can kill people , I directly generate apk Copy the file to the mobile phone to run .
Finally I wrote my first flutter app
Feeling or python good , Source files need not be compiled , Just an interpreter , The code is also simple , I'd better go back and play with my python Well , and python The program can also be converted into app
边栏推荐
- Local warehouse associated with remote warehouse
- 4、 Midway integrates swagger and supports JWT bearers
- Online lover
- Arrays and linked lists
- [wechat applet development] (I) development environment and applet official account application
- [wechat applet development] (IV) uni app from getting started to giving up
- Go: how to gracefully time out
- Valentine's Day
- From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
- Digital collection =nft? Have you entered the digital collection?
猜你喜欢

0 threshold takes you to know two-point search
![[Shangshui Shuo series] final rad New Literacies](/img/a3/73a0b74e29f6bfc8f22ca6235b5465.png)
[Shangshui Shuo series] final rad New Literacies

4、 Midway integrates swagger and supports JWT bearers

【MySQL】08:聚合函数
In the next bull market, can platofarm, the leading project in the Web3 world, set foot on the top of the mountain
![[Yum] configuration and use of Yum source](/img/38/16a910d9a038d513e0b0a54ba81b93.jpg)
[Yum] configuration and use of Yum source

Hack the box - Web requests module detailed Chinese tutorial

Digital collections "chaos", 100 billion market changes are coming?

Learn the rxjs operator

Figure storage geabase
随机推荐
Wargames NATAS (11-15) problem solving essay
Figure storage geabase
You can't access this shared folder because your organization's security policies prevent unauthenticated guests from accessing it. These policies can help protect your computer from unsafe or malicio
[wechat applet development (II)] custom navigation bar
Is gamefi in decline or in the future?
Advantages and disadvantages of redis and ZK implementing distributed locks
Introduction to wechat authorized login third-party app applet method
Relationship between fork and pipeline
How to write your FAQ page?
Cososcreator upgrade gradle version
[wechat applet development] (III) homepage banner component uses swiper
RPC中实现提供者信息变化后通知消费者
Error lnk2019: unresolved external symbol [email protected]
[wechat applet development (native)] canvas animation
Alibaba cloud OSS uploads pictures under folders and encounters pits
[Google play access] payment server token acquisition
Typescript -- Generic
Implementation of unity hub free version
[Yum] configuration and use of Yum source
Wargames bandit (11-20) problem solving essay