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

How to disable signature verification to install unsigned APK (Rooted device/VMOS) (Lucky Patcher)

VMOS 1.0.49 MOD APK | Video ads bypassed | Pre-rooted ROM