2016年4月20日 星期三

In Android development,now I used Android Studio for my IDE,so using gradle for building android must using gradle script.

In my another programing skill Flex,Most of programmers use ant for building script.Now I have a modern choice: gradlefx.

Below record is for what I encounter some issue:

1.Ambiguous method overloading for method java.io.File#. error

So I get starling sample code from starling website.In starling sample,they use gradefx for building process.So when enter "gradle" command in the sample folder.

G:\starling-2.0\samples>gradleParallel execution is an incubating feature.Defining custom 'build' task when using the standard Gradle lifecycle plugins has been deprecated and is scheduled to be removed in Gradle 3.0FAILURE: Build failed with an exception.* What went wrong:A problem occurred configuring project ':demo_mobile'.> Ambiguous method overloading for method java.io.File#.Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.String] [class java.net.URI]* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debugoption to get more log output.BUILD FAILEDTotal time: 35.549 secs
This issue is cause of FLEX_HOME did not define.
When I define FLEX_HOME in system environment,the error won't happen again.