I'm trying to create a simple "Hello World" application for android using Kivy in Python but I'm receiving an error when i try to install the application on my phone.
The error is:
"There was a problem parsing the package"
Does anyone know how to fix this problem?
This is the YouTube tutorial that i followed to create my APK file:
https://www.youtube.com/watch?v=yr7n0C2tspI
Okay i didn't follow the YouTube video exactly,
Instead of uploading the APK file to a google drive/onedrive i transferred it manually through a cable to my phone.
I think that doing it manually corrupts the file or something because i tried doing it through google drive and it works!
Related
I created a kivy app in python using pydroid3 It is quite simple, a single button. It works on the android device when run from pydroid3.
I successfully converted the python app to an android app using bulldozer.
Primary Question
I cannot get any debug feedback from the android device as to why the application crashes at start-up.
Can someone help find the location of some sort of android logs similar to syslog or PHP log in Ubuntu.
Here is what I have done to solve this problem myself:
I found documentation on how to properly configure the conversion with buildozer.spec. Soon I realized that I was adding all the python modules involved in the program - but most documentation says that buildozer scans the original files and imports the necessary modules, but still after numerous failures, I added as many as I determined needed to be included.
Each time I start the app on the android 10 device (a radio head), it just crashes upon opening. No error messages etc. I find it unexpected that there is no way to view some kind of Syslog in android. But still, I continued.
I installed android desktop (AD) on my Mac laptop and then connected it to the android head unit and setup the unit to allow USB debugging. I was able to get AD to spew out endless lines of real-time data in the Logcat display.
I was not able to identify anything related to my app in the output provided by logcat: a search using the filter resulted in nothing associated with my app's name. Further, nothing shows up searching for "error" "failure, "failure to load," etc -- that might have given me a clue.
Next Question
Are there any documents related to how to create a program in python, using buildozer, and then install and debug the app in android?
I am sure this is one simple missing module or a similar issue that should be glaring in an error log somewhere.
Thanks for any help.
Jack
.
see the information above
I am trying to upload my game to the play store. I created an apk file from buildozer and now I want to create a .aab file to upload it on google console. I searched some tutorials on YouTube and tried to convert the file on android studio, but I was unsuccessful in it. Can anyone please suggest to me some other ways to convert the file to .aab or how to successfully create it on the android studio? Thanks :)
I am developing a React-Django application and it runs locally.
When I install it on a server running on cpanel, it just shows a blank page.
My provider checked it and made the following statements:
The python application is installed correctly on cpanel
The cause of the error should be found on the developer side.
I made the simplest possible application: Simpletest
Local mode:
"Simple Test" text appears in the title and under the react logo
cpanel: Python application:
the text "Simple Test" appears only in the title and sends the following error message
Does anyone have any idea where I can look for the error?
The application can be cloned from this GitHub repository.
I would like to ask someone to try and install it on a server running cpanel. Does it have an application running?
Many thanks!
I have successfully compiled a few android packages with buildozer (e.g 'openweather' works just fine with an API key).
My Kivy file works fine.
When I include geopy, buildozer successfully compiles the kivy file, but the app crashes when I ask for the Lat/Lon position.
I have an API key from Nominatim/MapQuest:
in the 'main.py file': user_agent='API_key' or 'app_name' or my email address
in the buildozer'spec file':
requirements: pytyhon3, kivy, geopy
android.permissions= INTERNET
My question, what am I doing wrong?
Regards
Sybe
The permissions should be android.permissions = INTERNET, ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION, if you need access to the devices gps.
Try to rebuilding your app with those permissions included and post the logcat output if it still crashes
I'm just finished my coding and trying to upload to Google Play. Actually it's hard to upload just like coding:) So, I had to learn something about SDK and architect. I figured out how to fix'em and use. But at the end, when I'm trying to upload on GooglePlay, I'm getting this error.
ERROR (Actually warning):
Unoptimized APK Warning:
This APK results in unused code and resources being sent to users. Your app could be smaller if you used the Android App Bundle. By not optimizing your app for device configurations, your app is larger to download and install on users' devices than it needs to be. Larger apps see lower install success rates and take up storage on users' devices.
Resolution:
Use the Android App Bundle to automatically optimize for device configurations, or manage it yourself with multiple APKs.
I didn't see any "pass" button or smt. Like that for this WARNING. So I think I have to fix that first.
I checked websites for solution but couldn't find anything for non coding on Android Studio apks. I mean, I coded this apk on PyCharm then created with buildozer after signed by keytool. The main question is, how can I generate signed bundle apk on Android Studio, with my created APK or coded .py files.
I never built an Android app in this way but I understand your problem [and your frustration]
I gave a look around and I found this:
If you don't want to use Android Studio or Gradle tasks to build
bundles — for example, if you use a custom build toolchain — you
can use bundletool from the command line to build an app bundle from
pre-compiled code and resources. If you haven't already done so,
download bundletool from the GitHub repository