当前位置:网站首页>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 .
边栏推荐
猜你喜欢

Software engineering -- dental clinic -- demand acquisition

Take out brother is the biggest support in this society

Burp suite Chapter 6 how to use burp spider

OSPF summary

Matplotlib learning notes

【C语言】程序员筑基功法——《函数栈帧的创建与销毁》

Guitar staff link Jasmine

QT note 1

宇宙第一 IDE 霸主,换人了。。。

Let's talk about the three core issues of concurrent programming.
随机推荐
Flex three column layout
Burp Suite-第二章 Burp Suite代理和浏览器设置
Burp Suite-第一章 Burp Suite 安装和环境配置
数组的介绍--Array
Exam summary on June 27, 2022
Vscode domestic image server acceleration
小蜜蜂吉他谱 高八度和低八度
vscode 实用快捷键
Matplotlib learning notes
Nodejs2day (modularization of nodejs, NPM download package, module loading mechanism)
BGP -- Border Gateway Protocol
Random distribution learning notes
A summary of practical websites that won't brighten people's eyes
Awk operation
QT note 2
An empirical study on urban unemployment in Guangxi (Macroeconomics)
2022/7/17 exam summary
日常一记(11)--word公式输入任意矩阵
How to safely delete a useless activity in Android studio
mysql函数汇总之日期和时间函数