AndLua+ - List of runtime errors

List of runtime errors I discovered on AndLua+

Android.os.Build$VERSION_CODES.M is not a field or method
Solution: Change Build.VERSION_CODES.M to 23

This only occur when using Android 5.1 and below

android.view.WindowManager$LayoutParams.TYPE_APPLICATION_OVERLAY is not a field or method
TYPE_APPLICATION_OVERLAY is for Oreo and above. You should differentiate the target (before and after Oreo)

if Build.VERSION.SDK_INT >= 26 --Android 8.0 (API level 26)
  wmParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY
  wmParams.type = WindowManager.LayoutParams.TYPE_PHONE

Unfinished string near "'(string)'
Solution: Put the quote at the end of the string

Missing end quote is caused by chinese character errors when using Android 5.1 and below


Popular Posts

VMOS Pro Global CN FREE Custom ROMs | Gapps, ROOT, Xposed | Android 4.4.4, 5.1.1, 7.1.2, 9.0 ROMs | NO VIP

How to activate VMOS Assistant to run VMOS on Android 12 and above