mlc-llm
mlc-llm copied to clipboard
Android port
Hopefully we can expect and Android port of the same.
It’s up! https://twitter.com/bohanhou1998/status/1655772690760994818
The app crashes after pressing the "Send" button.
android.view.InflateException: Binary XML file line #27 in ai.mlc.mlcchat:layout/user_message: Binary XML file line #27 in ai.mlc.mlcchat:layout/user_message: Error inflating classCaused by: android.view.InflateException: Binary XML file line #27 in ai.mlc.mlcchat:layout/user_message: Error inflating class Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:343) at android.view.LayoutInflater.createView(LayoutInflater.java:856) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1008) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:963) ... Caused by: android.content.res.Resources$NotFoundException: Drawable ai.mlc.mlcchat:drawable/user_rounded_corner with resource ID #0x7f0700dd Caused by: android.content.res.Resources$NotFoundException: File res/qo.xml from drawable resource ID #0x7f0700dd at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:914) ... android.graphics.drawable.Drawable.createFromXmlInnerForDensity(Drawable.java:1402) at android.graphics.drawable.Drawable.createFromXmlForDensity(Drawable.java:1361) at android.content.res.ResourcesImpl.createFromXmlForDensity(ResourcesImpl.java:1633) at android.content.res.ResourcesImpl.loadXmlDrawable(ResourcesImpl.java:979) at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:897) ... 71 more
UPD: tried to fix the apk by replacing qo.xml with a similar f1.xml and re-signing it, it worked (dialog shape appeared) but then a few seconds later a native crash happened:
05-09 19:34:18.181 13990 14028 W Adreno-GSL: <553><2604>2604>553>
I am having the same crash on Note 10 Snapdragon
Closed as it's complete. Please feel free to open up new issues for crashes or feature requests