AutoX icon indicating copy to clipboard operation
AutoX copied to clipboard

Tasker调用出错

Open bingxizhe opened this issue 2 years ago • 5 comments

  1. Autox.js 版本:629
  2. Autox.js 下载渠道:https://github.com/kkevsekk1/AutoX/releases
  3. Android 版本:Android 10
  4. Android 机型:红米10x 4g
  5. Android 系统类别:pixel
  6. VSCODE Autox.js 扩展版本(可选,如果是连接电脑的问题需要填):
  7. 问题描述:
  8. 报错日志(可选):Version: 629 Android: 29 java.lang.IllegalStateException: WorkManager is not initialized properly. You have explicitly disabled WorkManagerInitializer in your manifest, have not manually called WorkManager#initialize at this point, and your Application does not implement Configuration.Provider. java.lang.RuntimeException:Unable to create application org.autojs.autojs.App: java.lang.IllegalStateException: WorkManager is not initialized properly. You have explicitly disabled WorkManagerInitializer in your manifest, have not manually called WorkManager#initialize at this point, and your Application does not implement Configuration.Provider. android.app.ActivityThread.handleBindApplication(ActivityThread.java:6465) ...... Caused by: java.lang.IllegalStateException:WorkManager is not initialized properly. You have explicitly disabled WorkManagerInitializer in your manifest, have not manually called WorkManager#initialize at this point, and your Application does not implement Configuration.Provider. androidx.work.impl.WorkManagerImpl.getInstance(WorkManagerImpl.java:158) androidx.work.WorkManager.getInstance(WorkManager.java:184) org.autojs.autojs.timing.work.WorkManagerProvider.enqueuePeriodicWork(WorkManagerProvider.kt:44) org.autojs.autojs.timing.TimedTaskScheduler$Companion.createCheckWorker(TimedTaskScheduler.kt:97) org.autojs.autojs.timing.TimedTaskScheduler$Companion.init(TimedTaskScheduler.kt:91) org.autojs.autojs.App.init(App.kt:89) org.autojs.autojs.App.onCreate(App.kt:51) android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1189) android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460) android.app.ActivityThread.access$1300(ActivityThread.java:219) android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859) android.os.Handler.dispatchMessage(Handler.java:107) android.os.Looper.loop(Looper.java:214) android.app.ActivityThread.main(ActivityThread.java:7356) java.lang.reflect.Method.invoke(Native Method) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
  9. 屏幕截图(可选): Screenshot_20220906-115413039 Screenshot_20220906-115413039

bingxizhe avatar Sep 06 '22 03:09 bingxizhe

我也是同样问题,用的是模拟器,似乎跟模拟器版本有关;早期的夜神安卓9就没问题,最新版本的就报同样的错误。 我的解决办法是使用tasker的脚本执行 am start -n org.autojs.autoxjs.v6/org.autojs.autojs.external.open.RunIntentActivity file:///sdcard/脚本/xxx.js 命令来启动。

PutinYpa avatar Sep 27 '22 01:09 PutinYpa

在切换定时任务调度器里面把调度器换了

showyourlucky avatar Nov 08 '22 05:11 showyourlucky

小米6也有同样的问题,参考2楼的兄台用root执行shall命令勉强解决

lolipoi avatar Nov 16 '22 03:11 lolipoi

魅族16X,安卓8,Autox6.3.5,MacroDroid5.28.8。在Mac里调用Autox也是会崩溃/无反应,还有直接卡死需要长安电源键重启的(二楼的脚本命令也试了,可以没生效)

eangzh avatar Feb 18 '23 16:02 eangzh

只能自己排查了,估计是ui线程问题,我基本离开这个行业了,很难去更新这了

发送自我的盖乐世

-------- 原始信息 -------- 发件人: 贵凰 @.> 日期: 2023/2/19 00:41 (GMT+08:00) 收件人: kkevsekk1/AutoX @.> 抄送: Subscribed @.***> 主题: Re: [kkevsekk1/AutoX] Tasker调用出错 (Issue #426)

魅族16X,安卓8,Autox6.3.5,MacroDroid5.28.8。在Mac里调用Autox也是会崩溃/无反应,还有直接卡死需要长安电源键重启的(二楼的脚本命令也试了,可以没生效)

— Reply to this email directly, view it on GitHubhttps://github.com/kkevsekk1/AutoX/issues/426#issuecomment-1435713620, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD64RCD2CJEKLLV7A3KJEUTWYD3ULANCNFSM6AAAAAAQFN2PIM. You are receiving this because you are subscribed to this thread.Message ID: @.***>

kkevsekk1 avatar Feb 18 '23 16:02 kkevsekk1

此lssue由于长期未活动已被自动关闭,如问题任然存在,请重新打开lssue

github-actions[bot] avatar May 09 '24 23:05 github-actions[bot]