Greendao 3.2.2 Configuration when the error: unable to find method ' Org.gradle.api.tasks.TaskInputs.file (ljava/lang/object;

Source: Internet
Author: User



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



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.