首页 > 其他分享 >键值对应用报错

键值对应用报错

时间:2022-11-30 10:45:09浏览次数:57  
标签:load 应用 报错 mSoundPool Integer 键值

mSoundPool应用时,若键值对应用时,

soundID.put((Integer)2 , mSoundPool.load(assetManager.openFd("biaobiao.mp3"); , 1));  //需要捕获IO异常

 

PUT无法把资源加载进去话,后面应用是就报

“ Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference”错误,

标签:load,应用,报错,mSoundPool,Integer,键值
From: https://www.cnblogs.com/skynight/p/16937699.html

相关文章