Getting zip expansion file causing NullPointerException. Zip is not placed in right directory of emulator?
问题 I'm trying to run the app in the eclipse emulator. In the ddms perspective, file explorer, I've put my .obb file inside mnt/obb/mypackage.name.example/main.1.mypackage.name.example.obb. Now Im getting NullPointerException at this line: zip = APKExpansionSupport.getAPKExpansionZipFile(ctx,1, -1); What could be the problem? 回答1: The path needs to be Android/obb/com.example.android/ Its given here Just store the file in /mnt/sdcard/Android/obb/ EDIT This is a screenshot of an emulator running