AkshayChordiya / News

A sample News 🗞 app built using Modern Android Development [Architecture Components, Coroutines, Retrofit, Room, Kotlin, Dagger]
MIT License
848 stars 166 forks source link

Failed to resolve: support-vector-drawable #16

Closed meidikawardana closed 5 years ago

meidikawardana commented 5 years ago

this is steps to reproduce:

  1. use android studio 3.2.1
  2. download the project, extract, & open it
  3. add news_key_api to all-projects gradle.properties
  4. build it
  5. download build tools version 28.0.0 rc2 because it is not yet exists in my android studio
  6. rebuild again
  7. error Failed to resolve: support-vector-drawable. If I click "Open file", it will open build.gradle (app).

please help.. I can't even reach to see the project running in emulator

meidikawardana commented 5 years ago

I resolved this error by changing these from original project in this github per today. app/build.gradle: line 9, to: buildToolsVersion '28.0.3'

build.gradle (project level) line 23 to 25: google() jcenter() maven { url 'https://maven.google.com' }

dependencies.gradle line 4, to: androidGradlePlugin = '3.2.1'

added gradle.properties on the root of project. as suggested on https://github.com/AkshayChordiya/android-arch-news-sample/issues/14 containing 2 lines: android.useAndroidX=true android.enableJetifier=true