Best way to add dependency for Wire using Gradle in Android Studio
问题 I'm using Square's Wire library for my Android app, using Android Studio with Gradle. I originally added the wire-runtime-1.2.0.jar into a libs folder in my module, and added the dependency to Gradle like this in my build.gradle file: dependencies { compile fileTree(dir: 'libs', include: '*.jar') } That worked fine. I'm new to Gradle and Android Studio, but based on the way I'm depending on the Google Support and Play Services libraries, I thought I might be able to remove the wire-runtime-1