Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not resolve com.github.pchmn:MaterialChipsInput:1.0.8 #117

Open
siavash-sajjad opened this issue Sep 17, 2018 · 4 comments
Open

Could not resolve com.github.pchmn:MaterialChipsInput:1.0.8 #117

siavash-sajjad opened this issue Sep 17, 2018 · 4 comments

Comments

@siavash-sajjad
Copy link

siavash-sajjad commented Sep 17, 2018

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?

@Killerbeans
Copy link

Hello, great library. Having the same problem.

@Killerbeans
Copy link

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.

@siavash-sajjad
Copy link
Author

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

@ajay-nagarajan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants