Tuesday, 12 November 2013
New Android event in Seville
If you happen to be in Seville on the 19th November 2013, don't miss this opportunity to take part in the first BOP ever!
Tuesday, 5 November 2013
Do you android.content.res.Resources$NotFoundException: unknown resource ? (aka Testing with Robolectric (II))
I assumed that one only needed to specify the location of the manifest if, like here, you were extending the Application class. After reading and failing miserably to get the most stupid test up and running, turns out that when you have BuildTypes and/or Flavours you have to explicit about your manifest too.
So if you are getting one of these pesky exceptions:
Double check that you specify the location of your AndroidManifest file in the
So if you are getting one of these pesky exceptions:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android.content.res.Resources$NotFoundException: unknown resource XXXXXX |
@Config
anotation.
Labels:
Robolectric
,
unit test
Debugging Gradle
Always wanted to find out how does Gradle the thing it does? Is it driving you crazy not knowing why that script is not working?
Attach a remote debugger
TL;DR
Attach a remote debugger
TL;DR
- Add a new system variable:This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
GRADLE_OPTIONS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5006 - Start your Gradle task
- Run your favourite IDE's debugger
Labels:
Android Studio
,
Gradle
Subscribe to:
Posts
(
Atom
)