1

I successfully upgrade gradle from 2.10 to 3.5 to build APK in android studio 3, but have problem like this Cannot Resolve AppCompatActiviy

And this is my build gradle Build Gradle

Faisal
  • 308
  • 4
  • 19
  • 2
    use latest v7 version instead of 23.4.0 – Zaid Mirza Mar 06 '18 at 08:45
  • Possible duplicate of [Cannot resolve symbol AppCompatActivity - Support v7 libraries aren't recognized?](https://stackoverflow.com/questions/30803405/cannot-resolve-symbol-appcompatactivity-support-v7-libraries-arent-recognized) – AskNilesh Mar 06 '18 at 08:46
  • https://stackoverflow.com/questions/29199891/cannot-resolve-symbol-appcompatactivity – AskNilesh Mar 06 '18 at 08:46
  • Have you tried support lib version `26.1.0` or `27.0.2`? – EpicPandaForce Mar 06 '18 at 08:49
  • 1
    @ZaidMirza your comment is right, because I use library 25 for build tools I update v7 to 25.x.x and it works, need you to answer this so I can accept your answer. – Faisal Mar 06 '18 at 09:09
  • @NileshRathod in that question the answer is android studio is weird thing? is not the answer! – Faisal Mar 06 '18 at 09:11

1 Answers1

2

If you are going to update gradle version specially 3.1+ than you might need to upgrade support lib version too. its weird but it seems compatibility issues between gradle version and support lib version.

Zaid Mirza
  • 3,540
  • 2
  • 24
  • 40