android - 使用 Google Maps Flutter 进行 Android 预启动测试的 StackOverflowError

标签 android flutter google-maps-flutter prelaunch

虽然我在调试构建中没有遇到 Android Studio 和 iOS 模拟器或 Android 模拟器的任何问题。我现在尝试将发布构建应用程序上传到使用 Google Play 控制台进行预启动,但我不明白为什么我无法在没有崩溃的情况下运行测试。

我尝试了很多升级/降级,但它只在 map 上崩溃,没有其他屏幕。即使是在创建新的 flutter 项目时使用基本配置的 google_maps_flutter 示例也会崩溃。

我没有要测试的安卓设备,所以我只能进行内部测试。 iPhone 没问题,工作正常。

此报告来自 Google Play 控制台中 Google 测试的以下设备,每次测试迭代构建时都会发生这种情况:

  • 设备:三星 Galaxy S9
  • 屏幕尺寸:1080x2009
  • 屏幕密度 (DPI):480
  • OpenGL ES 版本:3.2
  • CPU:高通SDM845
  • Android 版本 (SDK):Android 8.0 (SDK 26)
  • RAM(总内存):3,584 MB
  • ABI:ARM64_V8 语言环境:en_US

这是堆栈跟踪报告:

Process: androidx.test.tools.crawler.stubapp, PID: 7201
java.lang.StackOverflowError: stack size 1037KB
    at android.util.LongArray.clone(LongArray.java:117)
    at android.view.accessibility.AccessibilityNodeInfo.init(AccessibilityNodeInfo.java:3259)
    at android.view.accessibility.AccessibilityNodeInfo.obtain(AccessibilityNodeInfo.java:3051)
    at android.view.accessibility.AccessibilityCache.getNode(AccessibilityCache.java:231)
    at android.view.accessibility.AccessibilityInteractionClient.findAccessibilityNodeInfoByAccessibilityId(AccessibilityInteractionClient.java:287)
    at android.view.accessibility.AccessibilityNodeInfo.getChild(AccessibilityNodeInfo.java:995)
    at android.support.test.uiautomator.e.f(ByMatcher.java:7)
    at android.support.test.uiautomator.e.f(ByMatcher.java:10) **repeats 122 times **

这里是 flutter doctor -v

    • Flutter version 1.22.5 at /Users/Company/Development/flutter
    • Framework revision 7891006299 (6 weeks ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/Company/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin installed
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.52.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.12.2

 
[✓] Connected device (1 available)            
    • AOSP on IA Emulator (mobile) • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!

google_maps_flutter

最佳答案

这也发布在 flutter 的 GitHub 上,得到了答案。我只是忽略了这些类型错误的预启动测试报告错误。 https://github.com/flutter/flutter/issues/74902

关于android - 使用 Google Maps Flutter 进行 Android 预启动测试的 StackOverflowError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65878985/

相关文章:

flutter/Dart : getting directory contents with future not working

flutter - flutter 覆盖文本字段上/下键行为

google-maps - 更改自定义标记Google Maps的大小

flutter : map dependencie crashes the app

Android解析JSONObject

android - Android 中的 'Editable' 数据类型是什么?

flutter - 如何打印实例?

flutter - 使用 google_maps_flutter 检查坐标是否在 flutter 中的多边形内

java - 如何访问另一个布局的元素?

android - 为什么我得到 "call to OpenGL ES API with no current context"?