maven - Android:gradle I am unable to publish aar to local repository -
i creating library project in android studio. android studio implicitly supports gradle build terminologies.
i want publish library project local maven repository can use in other projects. (i have option create library in same application want distribute library)
i took this link link able publish below 3 files
maven-metadata-remote.xml maven-metadata-remote.xml.sha1 resolver-status.properties
i still not able publish aar file local maven repo
1. has thing application's build.gradle?
2. missing build aar file in library's build.gradle file? (though aar file getting built in outputs folder)
this library's build.gradle
apply plugin: 'com.android.library' android { compilesdkversion 23 buildtoolsversion "23.0.3" defaultconfig { minsdkversion 15 targetsdkversion 23 versioncode 1 versionname "1.0" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) testcompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.loopj.android:android-async-http:1.4.9' } // added below code of link apply plugin: 'maven' group = 'com.a.b' version = '1.0' uploadarchives { repositories { mavendeployer { repository(url: "file://c:/users/xxx user/.m2/") } } }
Comments
Post a Comment