-
Notifications
You must be signed in to change notification settings - Fork 506
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
getaddrinfo() error when build android in debug mode #951
Comments
We used to add --disable-ipv6 automatically, because I had build issues (probably the same as this), but haven't had that for a long time. I'm not sure how to fix it. Maybe there is a dependency package missing. |
Feels like you don't have
|
I am new to Kivy and Buildozer and I am experiencing the same issue with my Kivy app build for Android. OS: Ubuntu: 18.04, Kivy 1.11.1, Python 3.6.9. How and where do I use "--disable-ipv6"? Is this on the ubuntu os that I am using? Also installed dependencies as follows: But the same error persists. Following is my spec file: [app] (str) Title of your application (str) Package name (str) Package domain (needed for android/ios packaging) (str) Source code where the main.py live (list) Source files to include (let empty to include all the files) (list) List of inclusions using pattern matching (list) Source files to exclude (let empty to not exclude anything) (list) List of directory to exclude (let empty to not exclude anything) (list) List of exclusions using pattern matching (str) Application versioning (method 1) (str) Application versioning (method 2) (str) Custom source folders for requirements (str) Icon of the application (str) Supported orientation (one of landscape, sensorLandscape, portrait or all) (list) List of service to declare OSX Specific Kivy version to use Android specific (string) Presplash background color (for android toolchain) (string) Presplash animation using Lottie format. (list) Permissions (list) features (adds uses-feature -tags to manifest) (int) Target Android API, should be as high as possible. (int) Minimum API your APK will support. (int) Android SDK version to use (str) Android NDK version to use (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi. (bool) Use --private data storage (True) or --dir public storage (False) (str) Android NDK directory (if empty, it will be automatically downloaded.) (str) Android SDK directory (if empty, it will be automatically downloaded.) (str) ANT directory (if empty, it will be automatically downloaded.) (bool) If True, then skip trying to update the Android sdk (str) Android app theme, default is ok for Kivy-based app (str) Path to a custom whitelist file (str) Path to a custom blacklist file (list) List of Java .jar files to add to the libs so that pyjnius can access (list) List of Java files to add to the android project (can be java or a (list) Android AAR archives to add (list) Gradle dependencies to add (list) add java compile options (list) packaging options to add (list) Java classes to add as activities to the manifest. (str) OUYA Console category. Should be one of GAME or APP (str) Filename of OUYA Console icon. It must be a 732x412 png image. (str) XML file to include as an intent filters in tag (str) launchMode to set for the main activity (list) Android additional libraries to copy into libs/armeabi (bool) Indicate whether the screen should stay on (list) Android application meta-data to set (key=value format) (list) Android library project to add (will be added in the (list) Android shared libraries which will be added to AndroidManifest.xml using tag (str) Android logcat filters to use (bool) Copy library instead of making a libpymodules.so (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64 (int) overrides automatic versionCode computation (used in build.gradle) (str) XML file for custom backup rules (see official auto backup documentation) (str) python-for-android branch to use, defaults to master (str) python-for-android git clone directory (if empty, it will be automatically cloned from github) (str) The directory in which python-for-android should look for your own build recipes (if any) (str) Filename to the hook for p4a (str) Bootstrap to use for android builds Control passing the --use-setup-py vs --ignore-setup-py to p4a iOS specific Alternately, specify the URL and branch of a git checkout: Another platform dependency: ios-deploy Or specify URL and branch (bool) Whether or not to sign the code (str) Name of the certificate to use for signing the debug version (str) Name of the certificate to use for signing the release version [buildozer] (int) Log level (0 = error only, 1 = info, 2 = debug (with command output)) (int) Display warning if buildozer is run as root (0 = False, 1 = True) (str) Path to build artifact storage, absolute or relative to spec file
|
After several rounds of permutation and combinations of building my spec file, I changed the requirements as follows: requirements = python3,kivy,android,kivmob,jnius,mysql_connector,pysftp,tweepy,openssl Essentially, I removed the version specific requirement of python3==3.6.9 and the apk was successfully generated but the app did not get launched on my android phone. The Kivy splash screen appears and then the app crashes. Any suggestion? Am I doing something wrong by specifying the exact version of Python 3.6.9??? Please advise. |
👋 @liuhewei, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. |
Versions
Description
There is a Fatal error when I'm running
buildozer -v android debug
:I've changed the
/etc/gai.conf
file to prefer IPV4 over IPV6, but it doesn't works.sudo vi /etc/gai.conf # un-comment this line precedence ::ffff:0:0/96 100
And I don't know how to configure the
--disable-ipv6
for building hostpython3. Please help, thanks !buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: