Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac下使用MuMu模拟器Function importClass must be called with a class; had "[JavaPackage java.util.concurrent.CompletableFuture]" instead. #635

Closed
ghj1976 opened this issue Aug 2, 2023 · 1 comment

Comments

@ghj1976
Copy link

ghj1976 commented Aug 2, 2023

Mac下使用MuMu模拟器(模拟器版本 1.9.58(20220727))
toast('Hello World');
这样一个最简单的代码,使用VSCode的最新插件,执行,报错误:

16:38:44.938/E: Function importClass must be called with a class; had "[JavaPackage java.util.concurrent.CompletableFuture]" instead. (#14)
Function importClass must be called with a class; had "[JavaPackage java.util.concurrent.CompletableFuture]" instead.
at :14:0
at /android_asset/modules/npm/stream.js:5:0
at /android_asset/modules/npm/event-stream.js:954:0
at nccwpck_require (/android_asset/modules/npm/event-stream.js:988:0)
at /android_asset/modules/npm/event-stream.js:119:0
at nccwpck_require (/android_asset/modules/npm/event-stream.js:988:0)
at /android_asset/modules/npm/event-stream.js:9:0
at nccwpck_require (/android_asset/modules/npm/event-stream.js:988:0)
at /android_asset/modules/npm/event-stream.js:1008:0
at /android_asset/modules/npm/event-stream.js:1:0
at /android_asset/modules/npm/process.js:4:0
at :59:0
at :5:0

同样的Mac环境,模拟器用另外一台Win机器上的雷电模拟器,VSCode还是Mac下的这个就没问题。

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant