Android Studio - Gradle

I am trying to use the latest version of gradle for android studio which is 1.3.0.

http://android-developers.blogspot.ro/2015/07/get-your-hands-on-android-studio-13.html

Unfortunately, I am having problems trying to update the gradle version. The previous version of gradle was 1.2.3 and now wanted to upgrade it to 1.3.0.

I get the following error:

Error:Cannot access first() element from an empty List 

I also updated the Android Studio 1.3 application and I am currently using the following build tools:

 buildToolsVersion "23.0.0 rc3" 

I tried to remove gradle and .gradle dirs from my project, as well as the .gradle file from the user's home directory, but without success.

Even I tried to go to File -> Invalidate caches / restart, but still no solution.

+7
android android-studio gradle
source share
2 answers

I had the same problem using gradle 1.3.1 and buildtools 23.0.1. I found that this was due to the old version of bintray-release. This issue is fixed in version 0.3.4 +.

 classpath 'com.novoda:bintray-release:0.3.4' 
+20
source share

I get an error message Error: Cannot access the first () element from an empty list when compiling a sample project "Drive Database Sync" on git.

Solution: the problem arose because of the bintray version, and I solved the problem using the following gradle.build -

 // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.0.0' classpath 'com.novoda:bintray-release:0.3.4' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } } 
-one
source share

All Articles