Malwinder Singh
Malwinder Singh

Reputation: 7060

Value of compileSdkVersion for Android P Developer Preview

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

Upvotes: 8

Views: 7166

Answers (3)

Prakash
Prakash

Reputation: 4617

compileSdkVersion 'android-P'

with

targetSdkVersion 28

Worked for me!

Upvotes: 0

Malwinder Singh
Malwinder Singh

Reputation: 7060

compileSdkVersion 'android-P'

and

targetSdkVersion 'P'

Upvotes: 6

laalto
laalto

Reputation: 152867

With the P preview:

compileSdkVersion 'android-P'

targetSdkVersion 'P'

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

Upvotes: 12

Related Questions