Mycroft-Android icon indicating copy to clipboard operation
Mycroft-Android copied to clipboard

App Crashes at Startup

Open vhax opened this issue 7 years ago • 7 comments

So, I compiled and installed the app on Android 5.1, and every time I compile it, it shows an error message stating that it stopped working. I do not really know how to debug / code an Android app so I have absolutely no idea what to do.

If there is any additional info I need to provide, just tell me...

vhax avatar Jul 14 '17 11:07 vhax

Hi, a stack trace would be helpful. I am assuming that if you are compiling you have your dev environment setup. Are you running on a device or emulator? Also which version of the application are you using the main project or a fork of some kind? My fork is working and is being updated with bluetooth functionality. You could try that fork.

If you have the android SDK properly setup you can go into terminal and type //$adb logcat to get a stack trace, that would be very helpful to find out what is going on. I just ran on a 5.1 android emulator and that works fine. If I can think of anything else I will update you. Hope this helps... sarah

skraynick avatar Jul 14 '17 12:07 skraynick

Sorry, I am using windows for the SDK, and I used an actual device. I also do not know where to go to enter the command you mentioned.

vhax avatar Jul 14 '17 15:07 vhax

Ok. So to do that. there are two ways. If you are building from Android studio then you can look at the monitor tab in Android studio.. See screen shot.
screen shot 2017-07-14 at 18 12 15

The other way, you will have to bare with me as I don't use windows. But you would need to go to the cmd.exe from the start menu or see if there is an icon on your home screen with the cmd program. Then you an open that up and use //$adb logcat. The easiest way is to use Android studio. The phone has to be attached to the computer and recognised in Android Studio. If there is an error with the phone or application it should show up here if all goes well. Let me know if you are having any further troubles and I will try to help!

skraynick avatar Jul 14 '17 16:07 skraynick

Hmmm... Logicat seems to have no output, but I do get this error: "Invalid VCS root mapping. The directory <Project> is registered as a Git root, but no Git repositories were found there."

vhax avatar Jul 14 '17 17:07 vhax

hey, @vhax did you solve your issues? Sorry, I was away on holidays. Do let me know if I can help.

skraynick avatar Jul 28 '17 16:07 skraynick

Can't decide like that send me the code I have already made a few ai s and will see your prob

darkIncorporative avatar May 03 '18 17:05 darkIncorporative

Running the command ./gradlew installDebug correctly builds and installs the app, however, the app crashes as soon as it is launched from the device. I have the same results on both Android 9 and 10, tried on physical devices and emulators. I also tried older versions of this app and I get the same result, successful build & install and crash at startup, so I suspect it has incompatibilities with newer Android versions.

I do not know how to monitor an installed app to give you a stack trace. Can anyone give a hand with this?

belvederef avatar Nov 23 '19 15:11 belvederef