> What is up with this? 

As I have in hard way acted with Android Studio only about for a week, 
don't know. I hope, it's about "preview" status of developer, and that it 
all gets better. Knowing Google, there's hardly someone we could complain 
(forums about apis are full of requests and reports.. no one hears...)

And more about bugs (or featrues??) - I spent about 4 hours few days ago on 
that, I wasn't able to reference to R.layout.<some new id>. Thought already 
that problem is IN me.. stupid one.. and as I was already tried 
_everything_ and time was tooooo late.. went to sleep. On the next morning 
.. wake up my computer from sleep, first thing tried again run the code 
and.. IT WORKED. WTF.... so lesson learned about Android Studio - if you 
ran into some mysterious "bug", 
0) recheck code, and recheck, and ty rebuild - maybe it (gradle?) gives 
some error somewhere where IDE can't show it (for example some missing 
character or string in xml)
1) try clean project
2) try rebuild project
3) try restart android VM (not just rerun app)
and probably most important...
4) restart Android Studio

Second magical problem was that I tried reference from code to 
R.string.<some id>.. ooboy,
* getApplication().getResources().getString(.. and getcontext..
* getString(..
* just setText(R.string.<id>)
* maybe its impossible from runnable?
* etc and etc..
* cycle of (rebuild, clean, redeploy)
AND again.. went to sleep, on the next morning it JUST WORKED... o'boy I 
was pissed...

> Giles wrote:
> > You save my life !

:) Good to hear, that it helped



Urmas

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/42aeed33-e008-4d9d-bee2-deac388f2ce4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to