Are you looking for an answer to the query “How would you specify in your build.gradle file that your app required at least API level 21 to run, but that it can be tested on API level 28?”? If that’s the case, congratulations! You’ve arrived to the correct location. Throughout this post, I will assist you in answering your question correctly.
How would you specify in your build.gradle file that your app required at least API level 21 to run, but that it can be tested on API level 28?
Options
- defaultConfig { … minApiVersion 21 targetApiVersion 28 }
- defaultConfig { … targetSdkVersion 21 testSdkVersion 28 }
- defaultConfig { … minSdkVersion 21 testApiVersion 28 }
- defaultConfig { … minSdkVersion 21 targetSdkVersion 28 }
The Correct Answer Is:
- defaultConfig { … minSdkVersion 21 targetSdkVersion 28 }
Warming Up
I hope I was able to provide you with the correct answer to your question “How would you specify in your build.gradle file that your app required at least API level 21 to run, but that it can be tested on API level 28?”. The above question was asked in the LinkedIn Android Skill Quiz Exam. I appreciate your trust in this website. Additionally please keep checking back to this site for more answers to questions from other certification exams.