• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android Studio fails to transfer and run "hello world"

DrMN

Lurker
New installation of Android Studio, build the basic activity per the andriod developer tutorial, click "run -> run..", choose the device. The app is build, but the transfer to the device does not happen.
 
Amazingly, it just now worked. I have not a clue as to why now, nor why not before.

The nextablet was plugged in before starting the app, and it was asleep. I woke it up at some point after clicking go. That last detail is the only thing that I did not try previously, it was always awake at the beginning of previous attempts. If that is the magic step, then it is still quite bizarre.

I do not see any thing called "Logcat view"

The development host is Fedora 26, with Android Studio 2.3, and a Nextablet NXA8QC116
 
Well great that you got it working, but if you want to be an effective app developer, get familiar with the Logcat. It's the main output view for debugging and displaying stack traces.
 
How is it accessed? It doesn't seem to appear on its own, and there is no menu item with that label. Also, is there a facility for single stepping and showing variable or memory contents? Sorry to cross the RTFM line, so far the documentation and ide dont seem to completely line up.
 
Got it!! It seems that the IDE wants to be run with the default set to my home directory. In other words, login, or cd <return> to the home directory, then # android-studio/bin/studio.sh, Does that make sense?

I found the logcat display also, google search directed me to the "Android Monitor" tab. So now we're cookin'. Thank you.
 
Got it!! It seems that the IDE wants to be run with the default set to my home directory. In other words, login, or cd <return> to the home directory, then # android-studio/bin/studio.sh, Does that make sense?

Odd. The startup script shouldn't care where your current working directory is.
Try adding the Android Studio bin dir to your PATH

# PATH=$PATH:~/android-studio/bin
# studio.sh

then it doesn't matter where you currently are in the filesystem, AS should always start.
 
I will try that.

Before downloading and installing android-studio, I installed android-tools from the fedora repository. Is that a conflict?
 
I'm not sure what android-tools includes, but on my Ubuntu system I needed nothing more than what I downloaded from the official Android Studio download site.
 
Back
Top Bottom