Error in executing activity_main.xml image

Asked

Viewed 47 times

0

recently installed the android studio version 3.0 and followed its installation and configuration instructions, but this error appeared. I uninstalled and reinstalled and persists in it, which I must do?

inserir a descrição da imagem aqui

  • From the message it looks like you have conflicting dependency versions. Check that they have not been declared more than once or that the installed versions are in accordance with the project.

  • what would these conflicting dependencies be? could you explain to me?

1 answer

1

It seems in your file build.gradle of your module app dependence com.android.support:support-annotations declared more than once and with different versions. Apparently, you have this dependency with the version 26.1.0 and 17.1.1. Just check which version of yours compileSdkVersion. If it’s 27, then change all versions of the dependencies com.android.support to 27, otherwise change to the version you find.

If you prefer, post the code of your build.gradle here to analyze.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.