I have installed Android Studio 3 in my system and assigned a API level 26 version 1 & 2 both (Android Oreo (8.0) to the project as shown in the image below:
And the SDK tools as 26.1.1 version installed as shown in image below:
Code in app module gradle:
Troubleshooting steps i have tried so far:
- changing the versions of appcompact-v7 in gradle file to (26.0.0,26.0.1,26.0.2,26.1.1,26.1.2) and sync.
- Invalidate cache and restart.
- Rebuild project.
I did not get success in above methods. I get the error messages as:
and in more details according to the respective versions I get error msg as:
But if I change the version as appcompact-v7:+ then it works fine and gradle sync is successful. I know that it is not a good practice to use the above method.
How can we resolve the above error. Or is there any way we can find out which version of appcompact the studio is downloading when we add reference as appcompact-v7:+ ?
I am new to Android Studio and Android development.