android: mindboggling behaviour of android studio -


this driving me nuts.

i new android development, quite experienced developer. maybe don't know android studio enough???

i trying develop first app. pretty simple first. have splash screen, "landing screen", user needs select , map appears.

i run app emulator executing "run" (click on icon) in studio's tool bar. have simple default configuration "app" launches default activity.

the app crashes right now. in "android" log output get:

 caused by: java.lang.nullpointerexception: attempt invoke virtual method 'void android.app.actionbar.hide()' on null object reference             @ co.myapp.ui.android.user.splashactivity.oncreate(splashactivity.java:33)  

but code on line 33 commented!!!

protected void oncreate(bundle savedinstancestate) {      super.oncreate(savedinstancestate);      //getwindow().requestfeature(window.feature_action_bar);   //new     //getactionbar().hide();  //this line 33! 

i cleaned , rebuilt project, restarted studio....

i don't what's going on. suspect has intransparent debug/main/ configurations of android-studio...(the gradle console output full of :app:xxxdebugxxx logs...????) baffled, , blocked don't know continue...

what's going on here???

i can't believe myself helped:

create new project , handy-ish copy files via commandline over, restart android - seems working again.

i have worked many years eclipse , strange android-studio doesn't feel right. nevertheless afraid missing out on tutorials etc (the whole android documentation seems running on android studio). not clear if i'd emulator functionality eclipse (or other environment, vi....), without seems cumbersome develop android apps.


Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -