Home » Android » Android studio shows auto-complete suggestions based on compileSdk-Exceptionshub

Android studio shows auto-complete suggestions based on compileSdk-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

Android Studio shows code suggestions based on compileSdk even though one can only use elements defined with the minimum SDK. So, How to get an android studio to only show (code auto-complete) suggestions based on minimum SDK?

PS: I have tried setting compileSdk and targetSdk equal to minimum SDK (which in my case is API 22), the IDE then shows an error that compileSdk has to be at least API 26 (cannot use Expired SDK).

How to&Answers: