Android Studio project flavors resources -
this question has answer here:
i created project flavors right, , android studio installs 2 different applications device, that's ok.
however, trying add image drawable in html
<img src="file:///android_res/drawable/test.png" >
and not anymore work in flavors. in original project without flavors, worked.
is there must resources included in project flavors well?
this might caused different factor adding flavours.
on version of android run code? there has been changes webview starting kitkat (4.4), , seems not accept local assets/res anymore.
please @ logs , search this:
chromium﹕ [info:console(0)] "not allowed load local resource: file:///android_res/drawable/test.png", source: data:text/html, (0)
ticket aosp tracker: https://code.google.com/p/android/issues/detail?id=63033
please run application on pre-4.4 device or emulator check whether image rendered properly.
Comments
Post a Comment