[AC-5212] FileNotFoundException for Resources/images when building with SDK 6.2.0.GA for Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2017-09-19T14:13:35.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android |
Reporter | Michiel van Eerd |
Assignee | Shak Hossain |
Created | 2017-09-19T12:35:25.000+0000 |
Updated | 2017-09-19T14:13:35.000+0000 |
Description
When I try to build my apps with SDK 6.2.0.GA, the app crashes and I see alot of the same errors for every image I want to show like the ones below. When I build it again with SDK 6.1.2.GA, I don't have this problem.
[ERROR] TiDrawableReference: java.io.FileNotFoundException: Resources/images/iconCreateAccount.png
[ERROR] TiDrawableReference: at android.content.res.AssetManager.openAsset(Native Method)
[ERROR] TiDrawableReference: at android.content.res.AssetManager.open(AssetManager.java:347)
[ERROR] TiDrawableReference: at android.content.res.AssetManager.open(AssetManager.java:321)
[ERROR] TiDrawableReference: at org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:222)
[ERROR] TiDrawableReference: at org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:863)
[ERROR] TiDrawableReference: at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:346)
[ERROR] TiDrawableReference: at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:303)
[ERROR] TiDrawableReference: at org.appcelerator.titanium.util.TiLoadImageManager$LoadImageJob.run(TiLoadImageManager.java:128)
[ERROR] TiDrawableReference: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
[ERROR] TiDrawableReference: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
[ERROR] TiDrawableReference: at java.lang.Thread.run(Thread.java:761)
[WARN] TiDrawableReference: (pool-3-thread-1) [0,3684] Could not open stream to get bitmap
[ERROR] TiDrawableReference: (pool-3-thread-2) [15,3699] Problem opening stream with url /images/MenuIconAbout.png: Resources/images/MenuIconAbout.png
[~michielve] Thanks for the report! This looks to be the same as TIMOB-25284, could you try the latest 6.2.1 build (appc ti sdk install -b 6_2_X -d) and it should be fixed there!