appcompat-v7-r25

AppCompatActivity.onCreate can only be called from within the same library group

£可爱£侵袭症+ 提交于 2019-11-26 18:43:39
After upgrading to appcompat 25.1.0 I've started getting wired errors. In my code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); I get lint error: AppCompatActivity.onCreate can only be called from within the same library group (groupId=com.android.support) How to prevent such behavior? Martin As Felipe already pointed out in his comment this is a bug in the pre-release version of the tools. You can workaround it for now, until Google release a fix, by adding the following into your project module's build.gradle file: android { lintOptions {