I am using https://github.com/afollestad/material-camera.
As i do add compile 'com.afollestad:material-camera:0.4.4'
I giving me error:
make sure to add those lines to your gradle file
repositories {
jcenter()
maven { url "https://dl.bintray.com/drummer-aidan/maven" }
}
Related
i have imported import org.jsoup.Jsoup in my project, i got error while adding this dependency i am currently using android studio 3.5.2
implementation 'org.jsoup:jsoup:1.11.1'
please suggest me a correct dependencies to resolve from this
You need to add
maven { url 'https://maven.google.com' }
to your repositories section in the build.gradle file:
allprojects {
repositories {
google()
jcenter()
maven { url 'https://maven.google.com' }
}
}
I'm building a react native app and I'm using react-native-gallery-manager library.
Without it it works fine, but with it I get the following error:
*What went wrong:
A problem occurred configuring project ':react-native-gallery-manager'.
Could not resolve all artifacts for configuration ':react-native-gallery-manager:classpath'.
Could not find com.android.tools.build:gradle:2.2.3.
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.pom
https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.jar
Required by:
project :react-native-gallery-manager
In my android/build.gradle I have the following inside buildscript:
repositories {
google()
jcenter()
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
}
Does it mean I have to downgrade my gradle version?
Until the library you're talking about will fix the issue, add this code to your build.gradle
subprojects {
if (project.name.contains('react-native-gallery-manager')) {
buildscript {
repositories {
jcenter()
maven { url "https://dl.bintray.com/android/android-tools/" }
}
}
}
}
And same thing with all the libraries that have the problem... Many repo are currently being updated to fix it.
you have to change
./node_modules/react-native-gallery-manager/android/build.gradle
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
}
}
Gradle is not syncing properly, getting this error.
Help me to resolve this error when i add this library and press sync now it show this error (Failed to resolve).
Help me please to resolve it?
You must add build.gradle
repositories { maven { url "http://dl.bintray.com/glomadrian/maven" } }
reference: https://android-arsenal.com/details/1/1985 and https://github.com/kmenager/material-animated-switch
You need to add this code on gradlle(Project) all projects
maven {
url "http://dl.bintray.com/glomadrian/maven"
}
In the end, it will look something like this
allprojects {
repositories {
google()
jcenter()
maven {
url "http://dl.bintray.com/glomadrian/maven"
}
}
}
I want to install the following library in my project.
https://android-arsenal.com/details/1/348#!package
I have added the jar file in build folder
I also added the dependencies which are mentioned there.
I also added :
enter code here
maven {
url "https://jitpack.io"
}
But I found this error:
Please! help me to resolve this issue.
You can add this library in your gradle file
compile 'com.github.barteksc:android-pdf-viewer:2.8.2'
here's the link of the library just try it
I just added code in build.gradle file
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
when i add compile 'com.github.npanigrahy:Custom-Calendar-View:v1.0'
in my gradle.build
it gives an error : Error:(23, 13) Failed to resolve: com.github.npanigrahy:Custom-Calendar-View:v1.0
thank in advance
Use this in the build.gradle(Project:calender) file
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
And this in build.gradle(module:app)
dependencies {
compile 'com.github.npanigrahy:Custom-Calendar-View:v1.0'
}
First,you should check your android-studio settings,Do you set a http proxy?
Secondly,according the tutorial in https://github.com/npanigrahy/Custom-Calendar-View
Thirdly,Would you like download the dependency into your local matchine then dependent into your project??