codingdir logo sitemap sitemap |
Home
PHP
C#
C++
ANDROID
JAVA
JAVASCRIPT
PYTHON

Android Gradle export failed


By : , Category : android

So in my case I had a multi-project environment, what I had to do to get it working was to remove the absolute paths from the settings.gradle file in the root directory (dir containing all of the projects) and then in the build.gradle i had to remove the absolute directories for the compile statments and make sure that i used :{project_name} instead of ../{poject_name}

I realise that my situation was a bit different but if you download gradle and use the --debug switch you should be able to find which files have the problems and it's most likely a path problem.

ReLated :

This is because one or more of your asset names have unsupported characters present.

Replace all capitals with lowercase letters. Replace all spaces and dashes with an under-bar/underscore. AND to be safe, remove all numbers too.

Another suggestion I've seen going around is to make sure your SDK is up to date, but from my own experience it has always been the names of imported assets.

try to set your buildToolsVersion to 21.1.1 instead of 19.0.0 it is probably the cause of your proplem.

try to update android studio too, if it is not.

hope this will help.

Gradle now automatically aborts the build if it detects Lint problems. Lint is a utility to analyze the code for possible problems - things that you might see as warnings, not compile errors.

Just add the following to your "build.gradle" file and Lint problems should no longer stop the build.

 android {
      lintOptions {
          abortOnError false
      }
  }

Did you try changing the path in the bash_profile to point to gradle 1.9? I have noticed that just changing the distributionURL on the gradle wrapper file doesn't work most of the time. Gradle is still half baked with android studio.

Update: Since you are using android studio 0.4.0 itrequires gradle plugin 0.7.0 and gradle-wrapper 1.9.

Change your build.gradle

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.7.+'
    }
}
Comments


Message :
Login to Add Your Comments .
How to disable registered OpenCL platforms on Windows?
Is Observable broken in Angular 2 Beta 3?
Cross-thread operation not valid when using Invoke
How to pass an IEnumerable or queryable list of properties from Controller to View
Finding numbers after a certain keyword using Python
Pocketsphinx recognizes random phrases in a silence
Passing non-thread-safe objects through thread-safe containers
React scroll nav
BizTalk WCF-BasicHttp Adapter does not allow Empty string for Service Certificate Props
Why property ''cause" of Exception is repeating forever?
Privacy Policy 2017 © codingdir.com All Rights Reserved .