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

ERROR BUILD APK #2

Open
bobwatcherx opened this issue Apr 23, 2023 · 0 comments
Open

ERROR BUILD APK #2

bobwatcherx opened this issue Apr 23, 2023 · 0 comments

Comments

@bobwatcherx
Copy link

i have problem for build apk devices . i clone you repo and build apk but get error
root@mino-HP-Convertible-x360-11-ab1XX:/home/mino/belajar/flask-webview-android-p4a# p4a apk --private flaskapp/main.py
--package=org.webview.flask
--name "Flask Webview"
--requirements flask
--bootstrap=webview
--dist_name FlaskTOlol123
--version 0.0.1
--arch armeabi-v7a
--permission INTERNET
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[WARNING]: $ANDROIDNDKVER is deprecated and no longer necessary, the value you set is ignored
[INFO]: Will compile for the following archs: armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI: 30
Traceback (most recent call last):
File "/usr/local/bin/p4a", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/usr/local/lib/python3.10/dist-packages/pythonforandroid/toolchain.py", line 734, in init
getattr(self, command)(args)
File "/usr/local/lib/python3.10/dist-packages/pythonforandroid/toolchain.py", line 143, in wrapper_func
ctx.prepare_build_environment(user_sdk_dir=self.sdk_dir,
File "/usr/local/lib/python3.10/dist-packages/pythonforandroid/build.py", line 273, in prepare_build_environment
apis = get_available_apis(self.sdk_dir)
File "/usr/local/lib/python3.10/dist-packages/pythonforandroid/build.py", line 47, in get_available_apis
targets = get_targets(sdk_dir)
File "/usr/local/lib/python3.10/dist-packages/pythonforandroid/build.py", line 35, in get_targets
targets = avdmanager('list', 'target').stdout.decode('utf-8').split('\n')
File "/usr/local/lib/python3.10/dist-packages/sh.py", line 1524, in call
return RunningCommand(cmd, call_args, stdin, stdout, stderr)
File "/usr/local/lib/python3.10/dist-packages/sh.py", line 788, in init
self.wait()
File "/usr/local/lib/python3.10/dist-packages/sh.py", line 845, in wait
self.handle_command_exit_code(exit_code)
File "/usr/local/lib/python3.10/dist-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:

RAN: /root/Android/Sdk/tools/bin/avdmanager list target

STDOUT:

STDERR:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213)
at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 5 more

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

No branches or pull requests

1 participant