存储应用程序(股票应用程序)崩溃(在android EMULATOR中)

时间:2013-05-31 09:46:59

标签: android android-emulator

当我尝试在模拟器中的设置菜单中打开存储时,它(始终)会崩溃并显示以下logcat-output

java.lang.NullPointerException at com.android.settings.deviceinfo.StorageVolumePreferenceCategory.updatePreferencesFromState(StorageVolumePreferenceCategory.java:238)

以下是我的AVD的详细信息:

Name: Mx
Path: /home/vvy/.android/avd/Mx.avd
Target: Android 4.2.2 (API level 17)
ABI: armeabi-v7a
Skin: 480x800
Sdcard: /home/vvy/Documents/ANDU/sdC.img
________________________________________
hw.dpad: no
avd.ini.encoding: ISO-8859-1
disk.dataPartition.size: 200M
hw.gpu.enabled: yes
hw.cpu.model: cortex-a8
hw.ramSize: 512
hw.sdCard: yes
hw.device.name: Nexus One
vm.heapSize: 32

请注意,我可以从eclipse DDMS的角度将数据上传到SDCard,并且库存GALLERY应用程序能够显示通过DDMS透视图推送的图像内容。

这是一个已知问题吗?或者我做错了什么?

----------------- UPDATE -------------

相关的logcat输出

05-31 09:11:42.280: D/StorageMeasurement(2117): getDirectorySize(/mnt/sdcard/Alarms) returned 1536

05-31 09:11:42.340: D/StorageMeasurement(2117): getDirectorySize(/mnt/sdcard/Music) returned 1536


05-31 09:11:42.400: I/ActivityManager(287): Displayed com.android.settings/.SubSettings: +2s386ms


05-31 09:11:42.560: D/AndroidRuntime(2117): Shutting down VM


05-31 09:11:42.560: W/dalvikvm(2117): threadid=1: thread exiting with uncaught exception (group=0x40a71930)


05-31 09:11:42.611: D/StorageMeasurement(2117): getDirectorySize(/mnt/sdcard/Notifications) returned 1536


05-31 09:11:42.671: E/AndroidRuntime(2117): FATAL EXCEPTION: main

05-31 09:11:42.671: E/AndroidRuntime(2117): java.lang.NullPointerException

05-31 09:11:42.671: E/AndroidRuntime(2117):     at com.android.settings.deviceinfo.StorageVolumePreferenceCategory.updatePreferencesFromState(StorageVolumePreferenceCategory.java:238)

05-31 09:11:42.671: E/AndroidRuntime(2117):     at com.android.settings.deviceinfo.StorageVolumePreferenceCategory.updateApproximate(StorageVolumePreferenceCategory.java:307)

05-31 09:11:42.671: E/AndroidRuntime(2117):     at com.android.settings.deviceinfo.StorageVolumePreferenceCategory$1.handleMessage(StorageVolumePreferenceCategory.java:91)

05-31 09:11:42.671: E/AndroidRuntime(2117):     at android.os.Handler.dispatchMessage(Handler.java:99)

05-31 09:11:42.671: E/AndroidRuntime(2117):     at android.os.Looper.loop(Looper.java:137)

05-31 09:11:42.671: E/AndroidRuntime(2117):     at android.app.ActivityThread.main(ActivityThread.java:5041)

05-31 09:11:42.671: E/AndroidRuntime(2117):     at java.lang.reflect.Method.invokeNative(Native Method)

05-31 09:11:42.671: E/AndroidRuntime(2117):     at java.lang.reflect.Method.invoke(Method.java:511)

05-31 09:11:42.671: E/AndroidRuntime(2117):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

05-31 09:11:42.671: E/AndroidRuntime(2117):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)

05-31 09:11:42.671: E/AndroidRuntime(2117):     at dalvik.system.NativeStart.main(Native Method)

05-31 09:11:42.761: W/ActivityManager(287):   Force finishing activity com.android.settings/.SubSettings

05-31 09:11:42.801: D/StorageMeasurement(2117): getDirectorySize(/mnt/sdcard/Pictures) returned 1536

05-31 09:11:42.801: D/StorageMeasurement(2117): getDirectorySize(/mnt/sdcard/Download) returned 1536

05-31 09:11:42.841: D/StorageMeasurement(2117): getDirectorySize(/mnt/sdcard) returned 14941696

05-31 09:11:42.921: W/ActivityManager(287):   Force finishing activity com.android.settings/.Settings

更新

有人可以告诉我他们是否有库存STORAGE应用程序(模拟器)android 4.2.2

存储应用程序在android 2.3.7映像(在模拟器上)上工作正常但是!我还没有找到解决方案

更新

也不适用于x86图像。我试过LinuxMint13和Win7。

0 个答案:

没有答案