I renamed my package and now I get this strange error:
Unable to instantiate application
app.MyApplication: java.lan
For me the issue was due to access level of the class, it has to be public
this answer helped me, basically rename your lib to libs if you're using SDK 17+ https://stackoverflow.com/a/10176048/46459
I faced this issue as long as a day, finally i solved it, I had a mistake in Application class declaration, you need set your application class public like this:
public class AppController extends Application { }
My code that is wrong: class AppController extends Application { }
For me, the issue was with instant-run. Disabling it solved the issue.
Will update if I find a solution for re-enabling and making it work.
Simple clean the project and rebuild.