日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 >

flutterapp部分手机无法打开_Flutter应用程序在最新更新后无法运行

發(fā)布時間:2023/12/2 51 豆豆
生活随笔 收集整理的這篇文章主要介紹了 flutterapp部分手机无法打开_Flutter应用程序在最新更新后无法运行 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

Environment Details

Windows + VS Code

Flutter 1.17.5 ? channel stable ? https://github.com/flutter/flutter.git

Framework ? revision 8af6b2f038 (3 days ago) ? 2020-06-30 12:53:55 -0700

Engine ? revision ee76268252

Tools ? Dart 2.8.4

Error From Debug Console

E:\apps\flutterCode\android\app\src\main\java\com\example\testApp\MainActivity.java:3: error: package android.support.annotation does not exist

import android.support.annotation.NonNull;

^

E:\apps\flutterCode\android\app\src\main\java\com\example\TestApp\MainActivity.java:10: error: cannot find symbol

public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {

^

symbol: class NonNull

location: class MainActivity

2 errors

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':app:compileDebugJavaWithJavac'.

> Compilation failed; see the compiler error output for details.

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 10s

Exception: Gradle task assembleDebug failed with exit code 1

解決方案

try changing the minimum SDK version in the Android/build.gradle from 16 to 21.

if it is still not working try to change the build type function as below.

buildTypes {

release {

minifyEnabled true

// TODO: Add your own signing config for the release build.

// Signing with the debug keys for now, so `flutter run --release` works.

signingConfig signingConfigs.debug

}

}

總結(jié)

以上是生活随笔為你收集整理的flutterapp部分手机无法打开_Flutter应用程序在最新更新后无法运行的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。