我正在尝试使用gradle and beeware来构建一个Android应用。
编辑:我在公文包教程上关注教程0:https://briefcase.readthedocs.io/en/latest/tutorial/tutorial/tutorial-0.html
我已经尝试过切换toga版本和切换VOC版本。这些都不起作用。
这是说错误的地方:
commandLine "voc -v -p app -o build/intermediates/classes/debug app".split()
}
exec {
commandLine "voc -v -p app_packages -o build/intermediates/classes/debug app_packages".split()
}
}
应该构建该应用程序并将其发送到我的手机,该手机与OG电缆连接到我的计算机,并继续进行USB调试。这是我遇到的错误:
> Task :buildPythonDebug FAILED
Traceback (most recent call last):
File "C:UsersbartAppDataLocalProgramsPythonPython36librunpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:UsersbartAppDataLocalProgramsPythonPython36librunpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:UsersbartAppDataLocalProgramsPythonPython37-32Scriptsvoc.exe__main__.py", line 2, in <module>
File "C:UsersbartAppDataLocalProgramsPythonPython36libre.py", line 123, in <module>
import sre_compile
File "C:UsersbartAppDataLocalProgramsPythonPython36libsre_compile.py", line 17, in <module>
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
AssertionError: SRE module mismatch
FAILURE: Build failed with an exception.
* Where:
Build file 'C:UsersbartPycharmProjectsuntitled1helloworldandroidbuild.gradle' line: 13
* What went wrong:
Execution failed for task ':buildPythonDebug'.
> Process 'command 'voc'' finished with non-zero exit value 1
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.7/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 2s
16 actionable tasks: 1 executed, 15 up-to-date
$ adb logcat Python:* *:E
App started.
https://github.com/tiebe/dedruppel
您正在从Python3.7(ProgramsPythonPython37-32Scriptsvoc.exe
(运行VOC,但是您的解释器正在使用Python 3.6(PythonPython36libre.py
(的库。