当前位置:网站首页>Flutter compilation fails
Flutter compilation fails
2022-07-26 08:26:00 【Peanut - Summer】
1,Error: The method 'getNativeImage' isn't defined for the class 'PaintingBinding'. - 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart'
This is a third-party package reference flutter Class methods of engine , Switch flutter Engine version is ok . And then in AndroidStudio Configuration in configuration Flutter Of SDk route , Check Dart Is the path corresponding .
2,Gradle build failed to produce an .apk file. It's likely that this file was generated under <app_root>\build, but the tool couldn't find it
This is generation apk Compile time error , as a result of 1:build flavor No package name for . 2,gradle Of sdk 28 Change to 27 . 3,gradle Change the package name of to lowercase . 4, There is a problem with the compilation environment ,flutter clean And put Android The generated garbage files of have been deleted . again build
3,git Download is slow .ERROR: RPC FAILED; CURL 56 LIBRESSL SSL_READ: SSL_ERROR_SYSCALL, ERRNO 54
Check flutter Environment 1,path Is there a mirror . 2, Project clean up flutter clean Android Delete the junk file . 3,vpn Of SDN Reset , Repair .
4,TextEditingController Can't change TextEditingController The content of , It could be yours TextEditingController The writing position is wrong , It should be instantiated once . If in stf In the document , Then don't directly text Assign the initial value , use value assignment . use clean Empty .
边栏推荐
猜你喜欢

Apple's tough new rule: third-party payment also requires a percentage, and developers lose a lot!

mysql函数汇总之日期和时间函数

Date and time function of MySQL function summary

Introduction to arrays -- array

Add in the registry right click to open in vscode

这是一张图片

数组的介绍--Array

Software engineering -- dental clinic -- demand analysis

Seq2seq and attention model learning notes
![[GUI] swing package (window, pop-up window, label, panel, button, list, text box)](/img/05/8e7483768a4ad2036497cac136b77d.png)
[GUI] swing package (window, pop-up window, label, panel, button, list, text box)
随机推荐
Basic introduction of JDBC
How to safely delete a useless activity in Android studio
2022/7/17 exam summary
How WPS sets page headers page by page
Understand microservices bit by bit
ORACLE 官方文档
A little awesome, 130000 a month+
C# WinForm中PreviewKeyDown、KeyDown、KeyPress、KeyUp区别与联系
一键部署LAMP和LNMP架构
Brief introduction to XML
监控用户积分变化的两种方式
2022-7-4 personal qualifying 1 competition experience
2022/7/7 exam summary
Kotlin中room数据库的使用
Let's talk about the three core issues of concurrent programming.
Basic music theory rhythm connection problem, very important
Seq2seq and attention model learning notes
Oracle 常用函数
[time complexity, space complexity]
QSS add resource file of QT