Hi,
I have android multi project setup which compiles fine with:
gradle-1.12-all.zip
com.android.tools.build:gradle:0.12.2
I thought to upgrade gradle to 2.3 and android plugin to 1.0.0. I applied the migration steps listed on android site for it and got those things right. I am getting compilation error which I am unable to understand why.
Some basic errors like as if the class file generated has some issue or what it cannot find symbols like snippet below:
error: constructor RestClient in class RestClient cannot be applied to given types;
RestClient rc = new RestClient(ctx);
^
required: no arguments
found: Context
reason: actual and formal argument lists differ in length
As I said earlier same thing compiles fine in older versions of gradle and android plugin. I am using jdk 8 and have tried setting src, target compatibility to 1.6 also but same issue. I have tried both windows cmd and cygwin.
If need more info please let me know.
gradle -v
Gradle 2.3
Build time: 2015-02-16 05:09:33 UTC
Build number: none
Revision: 586be72bf6e3df1ee7676d1f2a3afd9157341274
Groovy: 2.3.9
Ant: Apache Antâ„¢ version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_25 (Oracle Corporation 25.25-b02)
OS: Windows 7 6.1 amd64
Regards,
Miten.