小编Art*_*zyy的帖子

Flutter 构建 Appbundle 错误:* 出了什么问题:评估项目“:app”时出现问题

这是我尝试在终端中运行“flutter build appbundle”时遇到的错误。我已经在寻找一些解决方案,但没有一个与我得到的错误相同

FAILURE:构建失败,出现异常。

  • 其中:构建文件 'C:\Users\User_Name\Desktop\deploy\bahetra\android\app\build.gradle' 行:31

  • 出了什么问题:评估项目“:app”时出现问题。

格式错误的 \uxxxx 编码。

这是我的“android\app\build.gradle”中的代码:

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
    flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
    flutterVersionName = '1.0' …
Run Code Online (Sandbox Code Playgroud)

android dart flutter

8
推荐指数
2
解决办法
1359
查看次数

标签 统计

android ×1

dart ×1

flutter ×1