Nadav Kadar
Nadav Kadar

Reputation: 27

Changing api compiling version

I started to program when I'm using 26 API to compile, but I must use 24 API for my project I tried to change it from the Project structure - compile sdk ,but it highlighting in red this following lines -

implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'

it probably because of the version of not completeable with the target sdk (24) what do i need to replace?

Thanks for Reading!!

Upvotes: 1

Views: 83

Answers (2)

Bavithra Thangaraj
Bavithra Thangaraj

Reputation: 10

If you change the complieSDKVersion to 24 and library version to 23.+ then you may have to change the property android:roundIcon in the AndroidManifest.xml to android:icon(if android:icon property already exist just delete android:roundIcon property)

Reason: android:roundIcon property was introduced in API 25 since we need to use API 24 for this project, this line will introduce error while compiling.

Upvotes: 0

Shivam Oberoi
Shivam Oberoi

Reputation: 1445

Change this -:

implementation 'com.android.support:design:26.1.0'

To-:

implementation 'com.android.support:design:23.3.0'

Upvotes: 1

Related Questions