博客: 安卓之家
微博: 追风917
CSDN: 蒋朋的家
简书: 追风917
20161203更新
已经确认这个错误是这个神器的锅: android-hidden-api
在Android Studio 2.2.2上使用时,已经没有了上面的试验选项,那么该如何解决呢,在这个issue得到了解决:
步骤:
1. Go to File -> Settings -> Build, Execution, Deployment -> Compiler
2. Add to “Command-line Options”: -x :app:mockableAndroidJar
3. Press “OK” and try to Rebuild Project again