square-wire

Best way to add dependency for Wire using Gradle in Android Studio

杀马特。学长 韩版系。学妹 提交于 2019-12-24 19:28:11
问题 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

Android Studio inline compiler showing red errors, but compilation with gradle works fine

安稳与你 提交于 2019-11-28 03:37:22
I've set up my project in Android Studio to use the Square Wire library , as per this question . Build -> Compile Project works fine. 2:03:10 PM Compilation completed successfully in 31 sec However, if I open one of my generated Protocol Buffer files, then the Square package is not being recognized. Another symptom is that methods inherited from the Square Message class are showing as "Cannot resolve method" compile errors in the editor, even though they build and run fine. Do I need to do something more than just adding the dependency in build.gradle for my module in my project? Bioz Nguyen

Android Studio inline compiler showing red errors, but compilation with gradle works fine

你说的曾经没有我的故事 提交于 2019-11-26 22:33:52
问题 I've set up my project in Android Studio to use the Square Wire library, as per this question. Build -> Compile Project works fine. 2:03:10 PM Compilation completed successfully in 31 sec However, if I open one of my generated Protocol Buffer files, then the Square package is not being recognized. Another symptom is that methods inherited from the Square Message class are showing as "Cannot resolve method" compile errors in the editor, even though they build and run fine. Do I need to do