1
4

1 回答 1

4

Ok guys I found the solution by myself. And I'll post the answer here for future reference.

Apparently the cause of my problem was in Gradle. This is the first time I've been using it, by suggestion of Android Studio.

I have noticed that Gradle isn't very good in reporting problems during the building of the application, it displays them at random. At one moment while building the app I noticed this error:

Gradle: error: unmappable character for encoding Cp1252

This error looks like it was the cause of my problem. Quick google search and I bump into this article: Get rid of “unmappable character for encoding Cp1252″ once and for all which in summary says to add new Environment Variable named JAVA_TOOL_OPTIONS with value of -Dfile.encoding=UTF8 this way Java would always use UTF-8 as default encoding.

于 2013-09-27T20:08:38.477 回答