android-priority-jobqueue icon indicating copy to clipboard operation
android-priority-jobqueue copied to clipboard

Compilation issue for android things.

Open keithle888 opened this issue 8 years ago • 1 comments

When this is included in my gradle dependency for a Android Library Module (compile 'com.birbit:android-priority-jobqueue:2.0.1'), a gradle sync error pops up...:

Error:Execution failed for task ':things:preDebugBuild'.

Android dependency 'com.android.support:support-v4' has different version for the compile (21.0.3) and runtime (26.0.1) classpath. You should manually set the same version via DependencyResolution

My min SDK is 21 because my library is required by both mobile and Things. My target and compileSDK version is 26....

keithle888 avatar Aug 25 '17 05:08 keithle888

You could set an exclusion in your gradle dependency on android-priority-jobqueue to exclude the support-v4 dependency from being transitively included. Should make the error go away.

kingargyle avatar Aug 31 '17 15:08 kingargyle