我与类星体一起工作。 我尝试使用以下命令启动项目:
quasar build -m capacitor -T android quasar dev -m capacitor -T android
但是当我插入第一个命令时,出现此错误
FAILURE: Build failed with an exception. * What went wrong: Could not initialize class org.codehaus.groovy.reflection.ReflectionCache > Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 [in thread "Daemon worker"] * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 4s
我只是运行额外的“--ide”,例如:
quasar build -m 电容器 -T android --ide
它们是开放的 Android Studio,然后您可以测试它或为 Play Market 构建它:)