java - Gradle sync failed: Unable to load class 'org.gradle.internal.logging.LoggingManagerInternal' -
i tried import new library module in android project (using android studio), work without problem, when imported have error (when trying sync gradle):
gradle sync failed: unable load class 'org.gradle.internal.logging.loggingmanagerinternal'.
bulid.gradle module
apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion "23.0.1" defaultconfig { applicationid "com.amazon.mysampleapp" minsdkversion 15 targetsdkversion 23 versioncode 1 versionname "1.0" multidexenabled = true } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } debug { debuggable true } } lintoptions { abortonerror false } sourcecompatibility = 1.7 targetcompatibility = 1.7 } dependencies { compile filetree(include: ['*.jar'], dir: 'libs') compile filetree(include: ['*.jar'], dir: 'app/libs') compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:support-v4:23.1.0' compile('com.amazonaws:aws-android-sdk-core:2.2.18') compile('com.amazonaws:aws-android-sdk-cognito:2.2.18') compile('com.amazonaws:aws-android-sdk-mobileanalytics:2.2.18') compile('com.amazonaws:aws-android-sdk-sns:2.2.18') compile 'com.google.android.gms:play-services-gcm:7.8.0' compile 'com.google.code.gson:gson:2.6.2' compile 'com.squareup.retrofit2:retrofit:2.1.0' compile 'com.squareup.retrofit2:converter-gson:2.1.0' compile 'io.reactivex:rxjava:1.1.6' compile 'io.reactivex:rxandroid:1.2.1' compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0' compile 'com.github.navasmdc:materialdesign:1.5@aar' }
bulid.gradle library
apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' apply plugin: "com.jfrog.bintray" def siteurl = 'https://github.com/frederikos/rximagepicker' def giturl = 'https://github.com/frederikos/rximagepicker.git' version = "1.1.9" group = "com.mlsdev.rximagepicker" properties properties = new properties() properties.load(project.rootproject.file('local.properties').newdatainputstream()) bintray { user = properties.getproperty("bintray.user") key = properties.getproperty("bintray.apikey") configurations = ['archives'] pkg { repo = "maven" name = "rximagepicker" websiteurl = siteurl vcsurl = giturl licenses = ["apache-2.0"] publish = true } } android { compilesdkversion 23 buildtoolsversion "23.0.3" defaultconfig { minsdkversion 14 targetsdkversion 23 versioncode 8 versionname "1.1.9" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } install { repositories.maveninstaller { pom { project { packaging 'aar' name 'rximagepicker easy way image gallery or camera request runtime permission on android m. using rxjava' url siteurl licenses { license { name 'the apache software license, version 2.0' url 'http://www.apache.org/licenses/license-2.0.txt' } } developers { developer { id 'frederikos' name 'frederikos' email 'frederikoss@gmail.com' } } scm { connection giturl developerconnection giturl url siteurl } } } } } dependencies { compile 'com.android.support:appcompat-v7:23.1.1' compile 'io.reactivex:rxandroid:1.0.1' compile 'io.reactivex:rxjava:1.0.14' compile 'com.github.navasmdc:materialdesign:1.5@aar' // testcompile 'junit:junit:4.12' } task sourcesjar(type: jar) { android.sourcesets.main.java.srcdirs classifier = 'sources' } task javadoc(type: javadoc) { source = android.sourcesets.main.java.srcdirs classpath += project.files(android.getbootclasspath().join(file.pathseparator)) } task javadocjar(type: jar, dependson: javadoc) { classifier = 'javadoc' javadoc.destinationdir } artifacts { archives javadocjar archives sourcesjar } task findconventions << { println project.getconvention() }
root level bulid.gradle
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.2' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4' classpath 'me.tatarka:gradle-retrolambda:3.2.5' } } apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' allprojects { repositories { jcenter() } }
any ideas me.
you need maintain version of android-maven-gradle-plugin appropriate gradle version.
you have idea required gradle version particular android-maven-gradle-plugin.
https://github.com/dcendents/android-maven-gradle-plugin#note-on-releases
Comments
Post a Comment