Android buildscript repositories: jcenter VS mavencentral

At Bintray I just rebloged a very detailed blog post describing the reasons why Google made this change. Here are the most important points: JCenter is a Java repository in Bintray, which is the largest repo in the world for Java and Android OSS libraries, packages and components. All the content in JCenter is served … Read more

buildTypes cannot be applied to groovy.lang.Closure

For me the problem was not solved by applying the above solution. Instead I had to go to the settings within Android Studio and select “Use gradle wrapper”: In Android Studio select: File\Settings\Build, Execution, Deployment\Build tools\Gradle (Mac Users: Android Studio\Preferences…\Build, Execution, Deployment\Build tools\Gradle ) Mark: Use default gradle wrapper (default) This removed all ‘cannot be … Read more

“Gradle Version 2.10 is required.” Error

You need to change File > Settings > Builds,Execution,Deployment > Build Tools > Gradle >Gradle home path On Mac OS, change the path in Android Studio > Preferences > Builds,Execution,Deployment > Build Tools > Gradle >Gradle home Or set Use default gradle wrapper and edit Project\gradle\wrapper\gradle-wrapper.properties files field distributionUrl like this distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip

Could not find or load main class org.gradle.wrapper.GradleWrapperMain

In addition to @RaGe’s answer may be the situation I faced where i had a global git ignore that was ignoring .jar files and so the gradle wrapper jar was never being committed. Thus I was getting that error on the Jenkins server after an attempted /var/lib/jenkins/my_project/gradlew build. I had to explicitly force an add … Read more

Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm

Two years has passed, now if you come across here, you may possibly encounterd error message like this: No toolchains found in the NDK toolchains folder for ABI with prefix mips64el-linux-android or No toolchains found in the NDK toolchains folder for ABI with prefix mipsel-linux-android Latest NDK removed support for mips abi, and earler version … Read more

Configuration on demand is not supported by the current version of the Android Gradle plugin

No need to downgrade! Disabling configure on demand requires two steps: Remove org.gradle.configureondemand from gradle.properties. In Android Studio, For Mac go to the Preferences > Build, Execution, Deployment > Compiler and uncheck the configure on demand. For Linux/Windows go to the File > Settings > Build, Execution, Deployment > Compiler and uncheck the configure on … Read more

Android Gradle plugin 0.7.0: “duplicate files during packaging of APK”

As of Android Studio version 0.8.14 You should add: android { packagingOptions { exclude ‘META-INF/LICENSE.txt’ exclude ‘META-INF/NOTICE.txt’ exclude ‘…’ } } to your build.gradle file. History: According to comment 14 in this bug: https://issuetracker.google.com/issues/36982149#comment14 this is a bug in v0.7.0 of the Android Gradle plugin, and is due to be fixed soon in 0.7.1. Here … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)