gpt4 book ai didi

androidx.room.RoomOpenHelper.e (RoomOpenHelper.java :15)

转载 作者:行者123 更新时间:2023-12-04 23:49:37 25 4
gpt4 key购买 nike

我在 Crashlytics (Firebase) 中收到此错误。该应用程序是在 Flutter 中构建的,我不确定我在本地没有得到的这个错误:

Fatal Exception: java.lang.IllegalAccessError
Illegal class access: 'androidx.room.v' attempting to access 'androidx.work.impl.v' (declaration of 'androidx.room.v' appears in base.apk)
androidx.room.RoomOpenHelper.e (RoomOpenHelper.java:15)
androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onUpgrade (FrameworkSQLiteOpenHelper.java:2)
android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked (SQLiteOpenHelper.java:489)
android.database.sqlite.SQLiteOpenHelper.getWritableDatabase (SQLiteOpenHelper.java:387)
androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableSupportDatabase (FrameworkSQLiteOpenHelper.java:4)
androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase (FrameworkSQLiteOpenHelper.java:4)
androidx.room.RoomDatabase.inTransaction (RoomDatabase.java:2)
androidx.room.RoomDatabase.assertNotSuspendingTransaction (RoomDatabase.java)
androidx.work.impl.model.SystemIdInfoDao_Impl.getWorkSpecIds (SystemIdInfoDao_Impl.java:9)
androidx.work.impl.background.systemjob.SystemJobScheduler.reconcileJobs (SystemJobScheduler.java:20)
androidx.work.impl.utils.ForceStopRunnable.cleanUp (ForceStopRunnable.java:1)
androidx.work.impl.utils.ForceStopRunnable.run (ForceStopRunnable.java:31)
androidx.work.impl.utils.SerialExecutor$Task.run (SerialExecutor.java:2)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
java.lang.Thread.run (Thread.java:923)
显然,很多设备在 Android 11 中每天都会遇到这个问题,并且在用户登录时会发生(我知道是因为 Crashlytics)
我的软件包及其版本列表:
l
ine_icons: ^2.0.1
dapackages: ^1.6.0 # keeps packages updated: flutter pub pub run dapackages:dapackages.dart ./pubspec.yaml
flutter_cupertino_localizations: ^1.0.1
flutter_google_places: ^0.3.0
maps_launcher: ^2.0.1 # REMOVED, USE OTHER INSTEAD
uuid: ^3.0.5 # IDs for events
cloudinary_public: ^0.11.0
showcaseview: ^1.1.4 # help for new users
provider: ^6.0.1
cloud_firestore: ^3.1.5
firebase_core: ^1.10.6 # needs Runner/GoogleService-Info.plist
firebase_auth: ^3.3.4 # needs Runner/GoogleService-Info.plist
firebase_analytics: ^9.0.4 # needs Runner/GoogleService-Info.plist
# firebase_crashlytics: ^2.4.3 # needs Runner/GoogleService-Info.plist and NSAppTransportSecurity in Info.plist
http: ^0.13.4
badges: ^2.0.2
flutter_translate: ^3.0.1
flutter_facebook_auth: ^4.1.2
google_sign_in: ^5.2.1 # needs Info.plist modification
sign_in_with_apple: ^3.3.0 # needs Xcode modification https://pub.dev/packages/sign_in_with_apple
shared_preferences: ^2.0.10
share_plus: ^3.0.4
intl: ^0.17.0 # locales for table_calendar and datetime manipulation
jiffy: ^4.1.0 # date manipulation
permission_handler: ^8.3.0 # needs Info.plist modification
csv: ^5.0.1
path_provider: ^2.0.8
package_info_plus: ^1.3.0
after_init: ^0.1.2 # NO NULL
flutter_email_sender: ^5.0.2
flutter_launcher_icons: ^0.9.2
# NEEDS TO BE UPDATED
file_picker: ^4.2.7 # for multiple images selection
image_picker: ^0.8.4+4 # for camera
image: ^3.1.0
url_launcher: ^6.0.17 # needs Info.plist modification
transparent_image: ^2.0.0
cached_network_image: ^3.2.0
carousel_slider: ^4.0.0
flutter_slidable: 1.0.0-dev.9
flutter_svg: ^1.0.0
table_calendar: ^3.0.3
add_2_calendar: ^2.1.2 # Info.plist modification
# NEEDS TO BE UPDATED
in_app_purchase: ^3.0.2 # official one.
device_info_plus: ^3.1.1
flutter_platform_widgets: ^1.12.0
flutter_native_splash: ^1.3.2
intl_phone_number_input: ^0.7.0+2 # NO NULL
country_pickers: ^2.0.0
currency_picker: ^2.0.7
# country_currency_pickers: ^1.0.1 # NO NULL
reorderables: ^0.4.2 # NO NULL reorder rent fields
drag_and_drop_gridview: ^1.0.8 # NO NULL
pdf: ^3.6.5
printing: ^5.6.6 # necessary for the above one
open_file: ^3.2.1 # necessary for the above one
# flutter_statusbarcolor_ns: ^0.4.0 # DO NOT CHANGE
fimber: ^0.6.4
fluttercontactpicker: ^4.6.0
contacts_service: ^0.6.3 # get contacts. Info.plist modification
stack_appodeal_flutter: 1.1.0

最佳答案

对我来说,我怀疑一个使用 sqlite 的包,cached_network_image->flutter_cache_manager->sqflite,因为我也有这个。如果我错了,那一定是与 android play store 相关的问题,因为用户在更新后甚至在 dart main 函数之前就捕获了这个崩溃,其中我通过代码清理了所有应用程序目录和缓存数据,它没有用。
是的,大多数用户可以在清理应用数据或重新安装应用后使用应用!但这对用户来说是不好的体验。
我在 github flutter repo 中打开了关于它的问题:https://github.com/flutter/flutter/issues/100821
并发现了一些有趣的已关闭的类似问题,其中问题的作者已找到问题,我认为他可以帮助我们并寻求帮助,现在没有答案:https://github.com/adjust/flutter_sdk/issues/73
对于缓存图像,我认为最好使用某种 nosql db,但我还没有找到任何带有 nosql db 的图像缓存包。将来这种包装会很棒。

关于androidx.room.RoomOpenHelper.e (RoomOpenHelper.java :15),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70485413/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com