android 添加数据库框架greenDao遇到的环境问题

问题:添加greenDao框架报错

Error:No signature of method: org.gradle.internal.metaobject.ConfigureDelegate.invoke() is applicable for argument types: (org.gradle.api.internal.file.collections.DefaultConfigurableFileTree) values: [directory 'D:\zhaoNowSVN\nowsvn\OneTouch\app\src\main\java']

Possible solutions: inject(groovy.lang.Closure), isCase(java.lang.Object)

解决:

1.各种google,搜索无果

2.自建项目,可以用,比较差异,可以用的项目gradle版本gradle-2.10-all.zip,而项目版本是gradle-     2.14-rc-3-all.zip

3.把项目版本更换为gradle-2.10-all.zip,遇到新问题

Error:Unable to load class 'org.gradle.internal.logging.LoggingManagerInternal'.Possible causes for this unexpected error include:

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)Re-download dependencies and sync project (requires network)

The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.Stop Gradle build processes (requires restart)

Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

4.各种google搜索 是因为使用了框架AndroidMP3Record,在项目级别的gradle中添加maven依赖版本是 classpath'com.github.dcendents:android-maven-gradle-plugin:1.4.1' 如果使用gradle 2.10 需要对应版本classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'


5.修改后编译 ,解决!

总结:

1.android环境问题只有自己慢慢比较差异...找bug要耐心

2.慢慢积累,写博客,学会排版

你可能感兴趣的:(android 添加数据库框架greenDao遇到的环境问题)