Could not resolve com.github.pchmn:MaterialChipsInput:1.0.8
hi i use android studio 3.1.3 and when i add library to my project, i get below error:
`Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.github.pchmn:MaterialChipsInput:1.0.8. Open File Show Details
Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.github.pchmn:MaterialChipsInput:1.0.8. Open File Show Details
Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.github.pchmn:MaterialChipsInput:1.0.8. Open File Show Details
Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.github.pchmn:MaterialChipsInput:1.0.8. Open File Show Details
Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.github.pchmn:MaterialChipsInput:1.0.8. Open File Show Details `
build.gradle(project): ` // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects { repositories { google() jcenter() maven { url "https://jitpack.io" } mavenCentral() } }
task clean(type: Delete) { delete rootProject.buildDir } `
build.gradle(app): ` apply plugin: 'com.android.application'
android { compileSdkVersion 27 defaultConfig { applicationId "com.frotel.pooshak" minSdkVersion 15 targetSdkVersion 27 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { debug {
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
}
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support:design:27.1.1' implementation 'com.android.support:cardview-v7:27.1.1' implementation 'com.android.support.constraint:constraint-layout:1.1.2' implementation 'com.android.support:support-v4:27.1.1' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation project(':PC')
implementation project(':Presenter')
implementation 'com.github.pchmn:MaterialChipsInput:1.0.8'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.github.GrenderG:Toasty:1.2.8'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.github.tbruyelle:rxpermissions:0.10.2'
implementation 'cn.pedant.sweetalert:library:1.3'
implementation 'com.github.pinball83:masked-edittext:1.0.4'
implementation 'com.andrognito.pinlockview:pinlockview:2.1.0'
implementation 'com.mohamadamin:persianmaterialdatetimepicker:1.2.1'
} `
what is problem?
Hello, great library. Having the same problem.
Found a solution. Make sure you're in your project
Open the Preferences, by clicking File > Settings (on Mac, Android Studio > Preferences). In the left pane, click Build, Execution, Deployment >> Gradle. Uncheck/disable the Offline work checkbox. Click Apply or OK.
Found a solution. Make sure you're in your project
Open the Preferences, by clicking File > Settings (on Mac, Android Studio > Preferences). In the left pane, click Build, Execution, Deployment >> Gradle. Uncheck/disable the Offline work checkbox. Click Apply or OK.
i disabled Offline wok don't solve my problem with this solution.
thanks
This has been hosted on jitpack. https://jitpack.io/#pchmn/MaterialChipsInput
Follow the directions there, its pretty straightforward. Essentially you have to add
repositories { ... maven { url 'https://jitpack.io' } }
and then implement/compile the dependency on gradle