升级到Appcelerator 6.2.0和Android 26时Android图像出错

时间:2017-09-20 19:12:31

标签: android appcelerator

  

ERROR]:ViewSystem:ViewRootImpl#2 Surface无效。 [错误]:   TiDrawableReference:(pool-4-thread-1)[95,95]问题打开流   with url /images/logo-half.png:Resources / images / logo-half.png [ERROR]   :TiDrawableReference:java.io.FileNotFoundException:   Resources / images / logo-half.png [错误]:TiDrawableReference:at   android.content.res.AssetManager.openAsset(Native Method)[ERROR]:   TiDrawableReference:at   android.content.res.AssetManager.open(AssetManager.java:364)[错误]:   TiDrawableReference:at   android.content.res.AssetManager.open(AssetManager.java:338)[错误]:   TiDrawableReference:at   org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:222)   [错误]:TiDrawableReference:at   org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:863)   [错误]:TiDrawableReference:at   org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:319)   [错误]:TiDrawableReference:at   org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:303)   [错误]:TiDrawableReference:at   org.appcelerator.titanium.util.TiLoadImageManager $ LoadImageJob.run(TiLoadImageManager.java:128)   [错误]:TiDrawableReference:at   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)   [错误]:TiDrawableReference:at   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:588)   [错误]:TiDrawableReference:at   java.lang.Thread.run(Thread.java:818)[ERROR]:   MotionRecognitionManager:mSContextService = null

1 个答案:

答案 0 :(得分:0)

同样的问题。由于移动到6.2.0+ Android所有图像都不起作用。

错误: 问题打开流与url /images/logo.png:Resources / images / logo.png

代码: image:' /images/logo.png'

位置: Android>图片> res- [密度文件夹](hdpi,mdpi,xhdpi,xxhdpi,xxxhdpi)

在设备和模拟器上运行 Galaxy S8,Genymotion Pixel +