Error:unable to Find method ' Org.gradle.api.tasks.TaskInputs.file (ljava/lang/object;) lorg/gradle/api/tasks/ Taskinputfilepropertybuilder: '.
Possible causes for this unexpected error Include:<ul><li>gradle's dependency cache May is corrupt (this Somet IMEs occurs after a network connection timeout.)
<a href= "Syncproject" >re-download Dependencies and Sync Project (requires network) </a></li><li >the state's a Gradle build process (daemon) may is corrupt. Stopping all Gradle daemons could solve this problem.
<a href= "stopgradledaemons" >stop gradle build processes (requires restart) </a></li><li>your Project may being using a Third-party plugin which is isn't compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>in of corrupt gradle processes, you can also try closing th E IDE and then killing all Java processes.
problems encountered with greendao3.2.3 configuration
These two days I've been studying Greendao this framework I downloaded in GitHub
Greendao3.2.2:https://github.com/greenrobot/greendao, according to the URL inside to configure:
//In your root build.gradle file:buildscript {repositories {jcenter () mavencentral ()//Add R Epository} dependencies {classpath ' com.android.tools.build:gradle:2.3.1 ' classpath ' Org.greenro bot:greendao-gradle-plugin:3.2.2 '//Add Plugin}}//In your app projects Build.gradle file:apply plugin: ' com.an Droid.application ' Apply plugin: ' Org.greenrobot.greendao '//Apply plugin dependencies {compile ' org.greenrobot:gr The eendao:3.2.2 '//Add library}
later found that the configuration did not create the project and reported the following error:
Error:unable to discover method ' Org.gradle.api.tasks.TaskInputs.file (ljava/lang/object;) lorg/gradle/api/tasks/taskinputfile ...
I've been searching the internet for a long time without finding a solution and I've been in a daze for a whole day ...
Then I looked at the error and I felt that the problem was on the Gradle version rather than on the Android studio, and the Gradle version I used earlier was
Gradle-2.14.1-all, and Android studio2.2.2 version
resolves the problem:
Later I downloaded the Gradle-3.5-all version in the website: https://services.gradle.org/distributions/and in Android studio
Middle File->settings->build,execution,deployment->gradie
Click OK to successfully solve the problem
I hope this configuration problem solution works for you.
The more you try, the luckier you are.
Turn from: http://www.cnblogs.com/wangxiankai/p/6707725.html