Tag: gradle
Google I/O 2017
gradle repositories https
[code]
repositories {
jcenter()
mavenCentral()
}
[/code]
http://stackoverflow.com/questions/27056733/change-gradle-mavencentral-url-to-my-repo
https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.dsl.RepositoryHandler.html
jcenter – The URL used to access this repository is “https://jcenter.bintray.com/”
mavenCentral – https://repo1.maven.org/maven2/
[code]
repositories {
maven {url "http://repo1.maven.org/maven2"}
}
[/code]
Gradle
Wrapper
Look in the root of the project for a gradlew file. If it exists, you can use the Gradle wrapper to execute the build without installing Gradle. Learn how to use it here. If you want information on how it’s generated in the first place, check out the user guide.
If that file doesn’t exist, you’ll need to install Gradle. The user guide explains how to do this generically for all platforms.
That’s not the only way you can install Gradle, though, the following links provide alternative approaches:
Detailed guide on installing Gradle on Windows (blog)
Installing Gradle with GVM (requires bash or zsh)(video)
Installing Gradle with apt-get on Ubuntu (blog)
Installing Gradle with Homebrew on Mac OS X (blog)
Load image from URL, AsyncTask
Actually, the loading images from URL to ImageView (ImageView itself is in GridView or ListView) is not a simple task. You should provide memory and disk caching to avoid reload image again and again.