mlc-llm icon indicating copy to clipboard operation
mlc-llm copied to clipboard

Android port

Open GeorvityLabs opened this issue 1 year ago • 3 comments

Hopefully we can expect and Android port of the same.

GeorvityLabs avatar Apr 29 '23 09:04 GeorvityLabs

It’s up! https://twitter.com/bohanhou1998/status/1655772690760994818

junrushao avatar May 09 '23 03:05 junrushao

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 class 
Caused 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>

remixer-dec avatar May 09 '23 09:05 remixer-dec

I am having the same crash on Note 10 Snapdragon

bubbabug avatar May 13 '23 04:05 bubbabug

Closed as it's complete. Please feel free to open up new issues for crashes or feature requests

junrushao avatar Jun 05 '23 15:06 junrushao