Playstore 错误:App Bundle 包含本机代码,并且您尚未上传调试符号 [英] Playstore error: App Bundle contains native code, and you've not uploaded debug symbols

查看:56
本文介绍了Playstore 错误:App Bundle 包含本机代码,并且您尚未上传调试符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我想向 Playstore 发布新的 Flutter 应用程序包时.我收到此错误:"此 App Bundle 包含本机代码,并且您尚未上传调试符号.我们建议您上传一个符号文件,以使您的崩溃和 ANR 更易于分析和调试."我找不到任何方法来解决这个问题.我是颤振和发布应用程序的新手,有点绝望......任何帮助都会很棒.

When I want to release a new flutter app bundle to the Playstore. I get this error: "This App Bundle contains native code, and you've not uploaded debug symbols. We recommend you upload a symbol file to make your crashes and ANRs easier to analyze and debug." I can't find any way to fix this. I'm new with flutter and releasing app's and getting a bit desperate... Any help would be fantastic.

当我添加android.defaultConfig.ndk.debugSymbolLevel = 'FULL'"时;(在第 1 行)按照 https 中的建议添加到 app/build.gradle://developer.android.com/studio/preview/features#native-crash-symbolization.我在 Android Studio 终端中收到此错误.我使用这个命令flutter build appbundle".

When I add "android.defaultConfig.ndk.debugSymbolLevel = 'FULL'" (on line 1) to the app/build.gradle as suggested in https://developer.android.com/studio/preview/features#native-crash-symbolization. I get This error in the Android studio terminal. I use this command "flutter build appbundle".

终端错误:FAILURE:构建失败,出现异常.

Error in Terminal: FAILURE: Build failed with an exception.

  • 哪里:构建文件 'C:\Users\filip\AndroidStudioProjects\ehbo\android\app\build.gradle' 行:1

  • Where: Build file 'C:\Users\filip\AndroidStudioProjects\ehbo\android\app\build.gradle' line: 1

出了什么问题:评估项目:app"时出现问题.

What went wrong: A problem occurred evaluating project ':app'.

无法获得类型为 org.gradle.api.Project 的项目:app"的未知属性android".

Could not get unknown property 'android' for project ':app' of type org.gradle.api.Project.

  • 试试:使用 --stacktrace 选项运行以获取堆栈跟踪.使用 --info 或 --debug 选项运行以获得更多日志输出.使用 --scan 运行以获得完整的见解.

    • 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.

      https://help.gradle.org

      在 3 秒内构建失败正在运行 Gradle 任务bundleRelease"...运行 Gradle 任务 'bundleRelease'... 完成 4,3sGradle 任务 bundleRelease 失败,退出代码为 1

      BUILD FAILED in 3s Running Gradle task 'bundleRelease'... Running Gradle task 'bundleRelease'... Done 4,3s Gradle task bundleRelease failed with exit code 1

      推荐答案

      在上传调试符号文件之前,您必须使用 Android Gradle 插件版本 4.1 或更高版本.

      Before you can upload debug symbols files, you must be using Android Gradle plugin version 4.1 or higher.

      看起来它只会与 Android Studio 4.1 一起提供,因为我现在只能自动获得 Gradle 4.0.0.

      Looks like it will come only with Android Studio 4.1, because I can only get Gradle 4.0.0 automatically now.

      所以我建议你返回经典的 Play 控制台,它会让你通过:)

      So I suggest you to return classic Play console and it will let you through :)

      这篇关于Playstore 错误:App Bundle 包含本机代码,并且您尚未上传调试符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆