Home » Android » Value of compileSdkVersion for Android P Developer Preview

Value of compileSdkVersion for Android P Developer Preview

Posted by: admin June 15, 2020 Leave a comment

Questions:

What should be the value of:

compileSdkVersion
targetSdkVersion

I have downloaded and installed Android P Developer Preview SDK, System image and build tools.

I have tried “28” but it is showing this error:

enter image description here

How to&Answers:

With the P preview:

compileSdkVersion 'android-P'

targetSdkVersion 'P'

See: https://developer.android.com/preview/setup-sdk.html

Answer:

compileSdkVersion 'android-P'

and

targetSdkVersion 'P'

Answer:

compileSdkVersion 'android-P'

with

targetSdkVersion 28

Worked for me!