SKbarbon / fpyo2apk

Pack your python flet-pyodide UI app into Android app.
MIT License
39 stars 8 forks source link

I've been waiting for about 5 minutes but the process stops here [LINUX MINT] #2

Open bobwatcherx opened 1 year ago

bobwatcherx commented 1 year ago

info

root@mopt-HP-Convertible-x360-11-ab1XX:/home/mopt# uname -a
Linux mopt-HP-Convertible-x360-11-ab1XX 5.15.0-41-generic #44-Ubuntu SMP Wed Jun 22 14:20:53 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
root@mopt-HP-Convertible-x360-11-ab1XX:/home/mopt# uname -r
5.15.0-41-generic

my .bashrc file

# for examples
#export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/

#export ANDROID_HOME=/root/Android/Sdk
export ANDROID_SDK_ROOT=/root/Android/Sdk
#export PATH=$PATH:$ANDROID_HOME/tools
#export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools/
export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/
export PATH=$PATH:$ANDROID_SDK_ROOT/emulator/

#export PATH=$PATH:/opt/gradle/gradle-8.1.1/bin
export PATH=$PATH:/opt/gradle/gradle-7.6/bin
(venv) root@mopt-HP-Convertible-x360-11-ab1XX:/home/mopt/belajar/fletpp# python3 -m fpyo2apk.build

This is `fpyo2apk`. A flet-pyodide dist to apk converter.
Be sure that Android Studio is installed and setuped.
Starting..

Create a briefcase project..
Write the name of your app: fletfirst
Write a small descibe of your app:yesy test
setting your appname and describe..
unzip is done..
editing the dist..
copy the dist..
start edit the 'app.py' file
start creating/editing the 'localhost.py' file
Your app is being built and then can open it on the android simulator..
This Usually take two minutes to finish, please wait..
bobwatcherx commented 1 year ago

do I have to create a virtual android in android studio? because I didn't make it

bobwatcherx commented 1 year ago

bro . iam waiting 15 minutes and its works . but failed to build apk .briefcase uses its own SDK. even though I have bashrc settings. how to solve it .

(venv) root@mopt-HP-Convertible-x360-11-ab1XX:/home/mopt/belajar/fletpp/fpyo2apkdist# briefcase build android

*************************************************************************
** WARNING: ANDROID_SDK_ROOT does not point to an Android SDK          **
*************************************************************************

    The location pointed to by the ANDROID_SDK_ROOT environment
    variable:

    /root/Android/Sdk

    doesn't appear to contain an Android SDK.

    Briefcase will use its own SDK instance.

*************************************************************************

and i get error like this


* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
   > com.android.ide.common.signing.KeytoolException: Failed to read key AndroidDebugKey from store "/root/.android/debug.keystore": Invalid keystore format

* 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

BUILD FAILED in 37s
38 actionable tasks: 1 executed, 37 up-to-date
Building...

Error while building project.

Log saved to /home/mopt/belajar/fletpp/fpyo2apkdist/logs/briefcase.2023_05_09-15_33_38.build.log
bobwatcherx commented 1 year ago

how to set the keystore

bobwatcherx commented 1 year ago

i managed to build debug apk but when i run it from my android . the application exits itself

SKbarbon commented 1 year ago

I did not test that on Linux 🙂, so i will soon.