gpt4 book ai didi

android - Android API 级别从 18 更改为 17,但 android 从来没有 "Boots Up"

转载 作者:行者123 更新时间:2023-11-30 03:14:48 25 4
gpt4 key购买 nike

有 OpenGL ES 2.0 应用程序,当我在 API 级别 18 的模拟器上运行它时,它运行流畅,大约需要 2 分钟(2k 日志消息)。

因为我的 S4 有 4.2.2(API 级别 17),所以我下载了它并开始在 API 级别 17 的 AVD 上进行测试,但它从未“启动”。我等了 15 分钟..

同样在我的设备上,应用程序无法运行,所以我认为是这个版本的问题,但即使我使用 4.2.2 生成了 .apk,它仍然无法在设备上运行("可怕的黑窗……我的 OGL!”)

测试环境:Win7。 (如果有什么不同的话)

============================================= ==================================编辑:似乎找到了规律:

它开始失败:

11-30 23:51:31.772: E/BatteryService(1436): usbOnlinePath not found
11-30 23:51:31.772: E/BatteryService(1436): wirelessOnlinePath not found
11-30 23:51:31.779: E/BatteryService(1436): batteryVoltagePath not found
11-30 23:51:31.779: E/BatteryService(1436): batteryTemperaturePath not found
...
11-30 23:51:32.129: E/PowerManagerService-JNI(1436): Couldn't load power module (No such file or directory)
...

然后说启动核心服务失败:

11-30 23:51:41.809: E/System(1436): ******************************************
11-30 23:51:41.829: E/System(1436): ************ Failure starting core service
11-30 23:51:41.829: E/System(1436): java.lang.RuntimeException: Unable to get provider com.android.providers.settings.SettingsProvider: android.database.sqlite.SQLiteException: Can't downgrade database from version 97 to 95
11-30 23:51:41.829: E/System(1436): at android.app.ActivityThread.installProvider(ActivityThread.java:4822)
11-30 23:51:41.829: E/System(1436): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4432)
11-30 23:51:41.829: E/System(1436): at android.app.ActivityThread.installSystemProviders(ActivityThread.java:4970)
11-30 23:51:41.829: E/System(1436): at com.android.server.am.ActivityManagerService.installSystemProviders(ActivityManagerService.java:6909)
11-30 23:51:41.829: E/System(1436): at com.android.server.ServerThread.run(SystemServer.java:282)
11-30 23:51:41.829: E/System(1436): Caused by: android.database.sqlite.SQLiteException: Can't downgrade database from version 97 to 95
11-30 23:51:41.829: E/System(1436): at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:361)
11-30 23:51:41.829: E/System(1436): at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:255)
11-30 23:51:41.829: E/System(1436): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:164)
11-30 23:51:41.829: E/System(1436): at com.android.providers.settings.SettingsProvider.establishDbTracking(SettingsProvider.java:386)
11-30 23:51:41.829: E/System(1436): at com.android.providers.settings.SettingsProvider.onCreate(SettingsProvider.java:326)
11-30 23:51:41.829: E/System(1436): at android.content.ContentProvider.attachInfo(ContentProvider.java:1058)
11-30 23:51:41.829: E/System(1436): at android.app.ActivityThread.installProvider(ActivityThread.java:4819)
11-30 23:51:41.829: E/System(1436): ... 4 more

最后说启动失败,很多服务都死了,然后它再次尝试加载所有库并尝试启动服务,再次重复这些消息。

11-30 23:51:41.829: I/SystemServer(1436): Input Method Service
11-30 23:51:41.892: W/InputMethodManagerService(1436): Couldn't create dir.: /data/system/inputmethod
11-30 23:51:41.959: D/ActivityThread(1436): Loading provider settings: com.android.providers.settings.SettingsProvider
11-30 23:51:42.119: W/SystemServer(1436): ***********************************************
11-30 23:51:42.139: A/SystemServer(1436): BOOT FAILURE starting Input Manager Service
11-30 23:51:42.139: A/SystemServer(1436): java.lang.RuntimeException: Unable to get provider com.android.providers.settings.SettingsProvider: android.database.sqlite.SQLiteException: Can't downgrade database from version 97 to 95
11-30 23:51:42.139: A/SystemServer(1436): at android.app.ActivityThread.installProvider(ActivityThread.java:4822)
11-30 23:51:42.139: A/SystemServer(1436): at android.app.ActivityThread.acquireProvider(ActivityThread.java:4473)
11-30 23:51:42.139: A/SystemServer(1436): at android.app.ContextImpl$ApplicationContentResolver.acquireProvider(ContextImpl.java:1987)
11-30 23:51:42.139: A/SystemServer(1436): at android.content.ContentResolver.acquireProvider(ContentResolver.java:1085)
11-30 23:51:42.139: A/SystemServer(1436): at android.provider.Settings$NameValueCache.lazyGetProvider(Settings.java:764)
11-30 23:51:42.139: A/SystemServer(1436): at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:811)
11-30 23:51:42.139: A/SystemServer(1436): at android.provider.Settings$Secure.getStringForUser(Settings.java:2772)
11-30 23:51:42.139: A/SystemServer(1436): at com.android.server.InputMethodManagerService$InputMethodSettings.getSelectedInputMethod(InputMethodManagerService.java:3850)
11-30 23:51:42.139: A/SystemServer(1436): at com.android.server.InputMethodManagerService.<init>(InputMethodManagerService.java:672)
11-30 23:51:42.139: A/SystemServer(1436): at com.android.server.ServerThread.run(SystemServer.java:361)
11-30 23:51:42.139: A/SystemServer(1436): Caused by: android.database.sqlite.SQLiteException: Can't downgrade database from version 97 to 95
11-30 23:51:42.139: A/SystemServer(1436): at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:361)
11-30 23:51:42.139: A/SystemServer(1436): at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:255)
11-30 23:51:42.139: A/SystemServer(1436): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:164)
11-30 23:51:42.139: A/SystemServer(1436): at com.android.providers.settings.SettingsProvider.establishDbTracking(SettingsProvider.java:386)
11-30 23:51:42.139: A/SystemServer(1436): at com.android.providers.settings.SettingsProvider.onCreate(SettingsProvider.java:326)
11-30 23:51:42.139: A/SystemServer(1436): at android.content.ContentProvider.attachInfo(ContentProvider.java:1058)
11-30 23:51:42.139: A/SystemServer(1436): at android.app.ActivityThread.installProvider(ActivityThread.java:4819)
11-30 23:51:42.139: A/SystemServer(1436): ... 9 more
11-30 23:51:42.169: I/SystemServer(1436): Accessibility Manager
11-30 23:51:42.219: W/SystemServer(1436): ***********************************************
11-30 23:51:42.219: A/SystemServer(1436): BOOT FAILURE making display ready
11-30 23:51:42.219: A/SystemServer(1436): java.lang.NullPointerException
11-30 23:51:42.219: A/SystemServer(1436): at com.android.server.ServerThread.run(SystemServer.java:377)
11-30 23:51:42.239: W/dalvikvm(1436): threadid=12: thread exiting with uncaught exception (group=0x40a71930)
11-30 23:51:42.239: E/AndroidRuntime(1436): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
11-30 23:51:42.239: E/AndroidRuntime(1436): java.lang.NullPointerException
11-30 23:51:42.239: E/AndroidRuntime(1436): at com.android.server.am.ActivityManagerService.showBootMessage(ActivityManagerService.java:4352)
11-30 23:51:42.239: E/AndroidRuntime(1436): at com.android.server.ServerThread.run(SystemServer.java:389)
11-30 23:51:42.259: I/Process(1436): Sending signal. PID: 1436 SIG: 9
11-30 23:51:42.309: I/Zygote(1233): Exit zygote because system server (1436) has terminated
11-30 23:51:42.339: E/installd(40): eof
11-30 23:51:42.339: E/installd(40): failed to read size
11-30 23:51:42.339: I/installd(40): closing connection
11-30 23:51:42.349: I/ServiceManager(30): service 'permission' died
11-30 23:51:42.349: I/ServiceManager(30): service 'scheduling_policy' died
11-30 23:51:42.349: I/ServiceManager(30): service 'telephony.registry' died
11-30 23:51:42.349: I/ServiceManager(30): service 'cpuinfo' died
11-30 23:51:42.349: I/ServiceManager(30): service 'accessibility' died
11-30 23:51:42.349: I/ServiceManager(30): service 'account' died
11-30 23:51:42.349: I/ServiceManager(30): service 'gfxinfo' died
11-30 23:51:42.349: I/ServiceManager(30): service 'package' died
11-30 23:51:42.349: I/ServiceManager(30): service 'activity' died
11-30 23:51:42.349: I/ServiceManager(30): service 'meminfo' died
11-30 23:51:42.349: I/ServiceManager(30): service 'dbinfo' died
11-30 23:51:42.349: I/ServiceManager(30): service 'entropy' died
11-30 23:51:42.349: I/ServiceManager(30): service 'power' died
11-30 23:51:42.349: I/ServiceManager(30): service 'usagestats' died
11-30 23:51:42.369: I/ServiceManager(30): service 'content' died
11-30 23:51:42.369: I/ServiceManager(30): service 'user' died
11-30 23:51:42.369: I/ServiceManager(30): service 'display' died
11-30 23:51:42.369: I/ServiceManager(30): service 'batteryinfo' died
11-30 23:51:42.369: I/ServiceManager(30): service 'sensorservice' died
11-30 23:51:42.479: I/ServiceManager(30): service 'media.audio_policy' died
11-30 23:51:42.479: I/ServiceManager(30): service 'media.audio_flinger' died
11-30 23:51:42.479: I/ServiceManager(30): service 'media.player' died
11-30 23:51:42.479: I/ServiceManager(30): service 'media.camera' died

在此编辑之前,您不知道到底发生了什么,现在有了日志。我自己也很无助,不知道该尝试什么,所以现在真的很希望得到你的帮助。

最佳答案

在测试 OpenGL 时,我不建议您使用模拟器,即 AVD。尽可能多地使用设备。

关于android - Android API 级别从 18 更改为 17,但 android 从来没有 "Boots Up",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20308695/

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