Basic Fail on Tutorial with briefcase run android #2244
Replies: 3 comments 3 replies
-
The log file that Briefcase created may contain more information about the error. If you upload here, we can take a look. Otherwise, I would recommend ensuring the app is not currently installed on the emulator; if it is, uninstall it and try again. |
Beta Was this translation helpful? Give feedback.
-
Looking at the log (attached above), it seems like the python library module subprocess is being called (though a series of calls from self.run("install", "-r", apk_path) ) and raises an Error on the result of running the subprocess: C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\subprocess.py:571 in run │ and the local variables for this function are: │ │ capture_output = False │ │ Clearly the installation of the application failed, but we already knew that. So, we're back to square one. But, you probably know a lot more about how to extract info from this log than I do. |
Beta Was this translation helpful? Give feedback.
-
I was able to make it work if I kept retrying "briefcase run android" on an already running emulator. It works about 1 time in 5. I don't know what the difference is. I guess something is hanging or taking too long and timing out. I'm running it on a laptop, but I've never had any performance issues like this before. Anyway, at least I can get it running enough perhaps to debug it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Okay. I know this has probably come up a lot, and I know everyone is busy. But I'm kind of stuck. I have an old version of an App running on my Android phone using beeware. Works great, and all I'm trying to do is upgrade the code a little. I've has a heck of time doing this. After days spent failing to be able to run the update android app in emulator (I using Windows 11 for my beeware environment with Python3.11.9). I decided to do a clean sweep. Reinstalled everything from scratch (Git, briefcase etc.). I deleted the old .gradle and .android directories and walked through the tutorial just to see if I could get that running on the android emulator.
Nope. Everything works great until I try to do "briefcase run android". It runs in briefcase dev, it runs as a packaged Windows App. This is just the Beeware Tutorial Code. It grinds along and just when its booted the emulator I get this error message:
I renamed the tutorial app to recircpump2 instead of HelloWorld so I could then just dump my code in and recompile.
So. My question is: Is there a log I can look at to see why adb failed to install my app on the emulator? Is there anything I can easily do to debug this? I really need this this app to work, or I'm going to have to rearchitect my app which will be painful.
Beta Was this translation helpful? Give feedback.
All reactions