GithubHelp home page GithubHelp logo

Comments (4)

Marcinosoft avatar Marcinosoft commented on July 4, 2024

#3006

from python-for-android.

Marcinosoft avatar Marcinosoft commented on July 4, 2024

To temporary workaround an issue, just uncomment and set following line within your buildozer.spec file:
p4a.fork = Marcinosoft
It's my fork of https://github.com/kivy/python-for-android repo with downgraded Gradle able to work with OpenJDK 11.

from python-for-android.

misl6 avatar misl6 commented on July 4, 2024

Is there anything we can do (apart of downgrading things) to keep the "support" for WSL1 ?

The suggestion is always to avoid using WSL1 / WSL2, but I know that for someone that's the only option.

from python-for-android.

Marcinosoft avatar Marcinosoft commented on July 4, 2024

Is there anything we can do (apart of downgrading things) to keep the "support" for WSL1 ?

The suggestion is always to avoid using WSL1 / WSL2, but I know that for someone that's the only option.

Unfortunatelly not really. I tried OpenJDK 21 also with WSL v1, it behaves same as OpenJDK 17. Same on Ubuntu 20.04.6 LTS and 22.04.3 LTS. Ubuntu 18.04.6 LTS is no longer useable with Buildozer 1.5.0 as long it comes with Python 3.6, but Buildozer 1.5.0 requires at least Python 3.8 (exception using Python 3.6: AttributeError: module 'shlex' has no attribute 'join').

The issue with OpenJDK 17+ looks really annoying, because it happens during file copy operation. Part of files are copied fine, but it always fail on random file. I tried to analyze it but see no clear reason. Method used to copy files have to be different in OpenJDK 11, comparing to 17 and 21. Java method tries to set permissions after copying file and probably it is not fully compatible with way of file handling implemented in WSL v1. It's really annoying, knowing that part of files are copied fine, but for some files it always fail.

I know that downgrading Gradle to 7.x is short term solution, as long probably in future more modern Gradle and Gradle plugin versions will be required, but for now my pull request #3006 fully solves reason why Gradle was upgraded to 8.x #2887. Latest 7.x does not show any warning about untested android.suppressUnsupportedCompileSdk=33 specyfying android.api = 33 in buildozer.spec.

from python-for-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.