android - Gradle thinks `compile` dependency as `apk` dependency -


i have compiled library aar published , hosted on local maven.

compile("com.a.b:library:0.0.1@aar"){     changing = true     transitive = true } 

however gradle throws error:

project :app: apk-only dependencies can jars. library@aar android library. 

this android gradle plugin version 2.3.3 , gradle version 4.1-rc-1

the library project has same configuration.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -