1.build的模拟单选框回调函数处有误
2.itemSelectMode写错了。看了__dialogs__.js是"single"和"multi"。
3.还有build会有误。
然后就是,我想通过弹对话框让人选择要自动点击哪个控件,但是好像是因为线程数组不安全(弹窗),导致传递的UIobject的child变成null,怎么解决?如果是要用java的怎么弄呢

Version: 404
Android: 26
org.mozilla.javascript.EcmaError: TypeError: Cannot  find function emit in object 

com.afollestad.materialdialogs.MaterialDialog@7df1593. (__dialogs__.js#171)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4142)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4120)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:4153)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:4172)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:4244)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2533)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2515)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1322)
    at script(__dialogs__.js:171)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:399)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3452)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107)
    at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.java:137)
    at org.mozilla.javascript.InterfaceAdapter$1.run(InterfaceAdapter.java:83)
    at org.mozilla.javascript.Context.call(Context.java:526)
    at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:509)
    at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdapter.java:86)
    at org.mozilla.javascript.jdk13.VMBridge_jdk13$1.invoke(VMBridge_jdk13.java:132)
    at java.lang.reflect.Proxy.invoke(Proxy.java:913)
    at $Proxy12.onSelection(Unknown Source)
    at com.afollestad.materialdialogs.MaterialDialog.sendSingleChoiceCallback(MaterialDialog.java:335)
    at com.afollestad.materialdialogs.MaterialDialog.onItemSelected(MaterialDialog.java:237)
    at com.afollestad.materialdialogs.DefaultRvAdapter$DefaultVH.onClick(DefaultRvAdapter.java:181)
    at android.view.View.performClick(View.java:6281)
    at android.view.View$PerformClick.run(View.java:24745)
    at android.os.Handler.handleCallback(Handler.java:793)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:176)
    at android.app.ActivityThread.main(ActivityThread.java:6701)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:246)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
    at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:108)
最后由 二次蓝 编辑

对了,有没有大佬愿意写连接数据库的java写法 :blush: 嘿嘿,就读取增删本地的db文件。 :kissing_heart:

开发者

@二次蓝对话框BUG 中说:

itemSelectMode确实有问题,请在公告处更新内测版本

  • 3
    帖子
  • 1389
    浏览

与 Auto.js 的连接断开,我们正在尝试重连,请耐心等待