问题标签 [androlua]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
470 浏览

android - Passing String arg to Lua method with LuaJava in AndroLua

I have a Lua function defined in a Java String, and I'd like to pass it a String arg

Executng code

Getting Unknown error 5: error in error handling

I'm completely new to lua and luajava, I'm sure this simple case of not understanding how the LauState object is working, the java docs aren't amazing (or I'm missing something very newbie). I have been able to get a return value if I call the hello function from within the lua code and using print method. I'm executing on Android device using AndroLua

0 投票
1 回答
145 浏览

android - 使用 luajava 时的 Proguard 配置

尝试对使用 luajava(与 AndroLua)的应用程序进行 Proguard 并且它运行良好,直到我对其进行 proguard 然后它无法启动,我只是得到一个黑屏,并且日志充满了以下条目,这些条目在应用程序之前不会停止已卸载。

我正在使用标准的 SDK Proguard 配置和以下配置

从日志中提取:

06-21 10:07:23.781: I/DEBUG(156): bea755d0 414f5fd8 /dev/ashmem/dalvik-heap (删除) 06-21 10:07:23.781: I/DEBUG(156):
bea755d4 40af202d /system/ lib/libdvm.so (dvmHeapSourceAlloc(unsigned int)+72) 06-21 10:07:23.781: I/DEBUG(156): bea755d8 414f5f30 /dev/ashmem/dalvik-heap (deleted) 06-21 10:07: 23.781: I/DEBUG(156):
bea755dc bb99c9bb 06-21 10:07:23.781: I/DEBUG(156):
bea755e0 00000000 06-21 10:07:23.781: I/DEBUG(156):
bea755e4 70b14afc /data app-lib/com.my.app-1/libluajava.so