問題:添加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 需要對應(yīng)版本classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
5.修改后編譯 ,解決!
總結(jié):
1.android環(huán)境問題只有自己慢慢比較差異...找bug要耐心
2.慢慢積累缚柏,寫博客,學(xué)會排版