Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

资源找不到的问题 #172

Closed
alkaid opened this issue Jun 21, 2016 · 2 comments
Closed

资源找不到的问题 #172

alkaid opened this issue Jun 21, 2016 · 2 comments

Comments

@alkaid
Copy link

alkaid commented Jun 21, 2016

1.问题1 其中一个lib插件的res/raw下的资源找不到
FATAL EXCEPTION: main Process: android.content.res.Resources$NotFoundException: File res/raw/key_click.mp3 from drawable resource ID #0x40050000 at android.content.res.Resources.openRawResourceFd(Resources.java:2416) at android.media.MediaPlayer.create(MediaPlayer.java:992) at android.media.MediaPlayer.create(MediaPlayer.java:975)

2.问题2 Context.getAssets().openFd(Path)方法异常
error: This file can not be opened as a file descriptor; it is probably compressed java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed at android.content.res.AssetManager.openAssetFd(Native Method) at android.content.res.AssetManager.openFd(AssetManager.java:332)

@aqiuzzt
Copy link

aqiuzzt commented Jun 24, 2016

遇到同样的问题,很多资源找不到

@galenlin
Copy link
Member

@alkaid 已解决该问题,请使用gradle-small: 1.0.0-beta2进行编译

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants