grade中在线添加依赖无效不下载的问题和.MainActivity did not call through to super.onCreate()

75 阅读1分钟

onCreate()中缺少代码: super.onCreate(savedInstanceState);

如果确认在线已经添加过依赖,如:

compile 'com.android.support:appcompat-v7:24.2.1'但是写代码导包的时候没有已经添加过的库,或者添加的时候根本看不到下载的进程,很可能是软件自身的问题,重启程序一般就可搞定(节约时间),