-
Notifications
You must be signed in to change notification settings - Fork 503
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
Android debug error #1844
Comments
This is a support case on Kivy@Discord. |
Problems SolvedUse the workflow below. Sample repository at https://github.com/Novfensec/SAMPLE-KIVYMD-APP # Sample repository at https://github.com/Novfensec/SAMPLE-KIVYMD-APP
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Used to cache dependencies with a timeout
- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
shell: bash
- name: Cache Buildozer global directory
uses: actions/cache@v2
with:
path: .buildozer_global
key: buildozer-global-${{ hashFiles('buildozer.spec') }}
- uses: actions/cache@v2
with:
path: .buildozer
key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('buildozer.spec') }}
# Install dependencies
- name: Install dependencies
run: |
sudo apt update
sudo apt-get install -y \
build-essential \
git \
ffmpeg \
libsdl2-dev \
libsdl2-image-dev \
libsdl2-mixer-dev \
libsdl2-ttf-dev \
libportmidi-dev \
libswscale-dev \
libavformat-dev \
libavcodec-dev \
libunwind-dev \
zlib1g-dev
sudo apt-get install -y \
libsqlite3-dev \
sqlite3 \
bzip2 \
libbz2-dev \
zlib1g-dev \
openssl \
libgdbm-dev \
libgdbm-compat-dev \
liblzma-dev \
libreadline-dev \
uuid-dev \
libgstreamer1.0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good
sudo apt-get install -y \
zip \
unzip \
autoconf \
libtool \
pkg-config \
libncurses5-dev \
libncursesw5-dev \
libtinfo5 \
cmake \
libffi-dev \
libssl-dev \
automake
# Set up Java 17 required by Gradle
- name: Setup Java 17 required by Gradle
uses: actions/setup-java@v3
with:
distribution: 'temurin' # or 'zulu', 'liberica', etc.
java-version: '17'
# Set up Python
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8' #set your python version
# Install pip dependencies
- name: Install pip dependencies
run: |
pip install --upgrade pip
pip install buildozer cython==0.29.33
# Build with Buildozer
- name: Build with Buildozer
id: buildozer
run: |
yes | buildozer -v android debug
# Upload artifacts
- name: Upload APK artifact
uses: actions/upload-artifact@v4
with:
name: package
path: bin/*.apk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Versions
Description
I made an application with these codes before, but it doesn't work anymore
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: