deepin 的Android Studio导入工程老是报错:Error:(1, 0) Gradle DSL me...
Tofloor
poster avatar
fyl199113
deepin
2018-06-05 16:01
Author
新建项目没问题,但是从svn里check出的项目就报Error1, 0) Gradle DSL method not found: 'apply()'这个错误。网上说要将gradle改成utf-8无bom格式,但是不管用。哎呀愁死了。干不了活了都!
Reply Favorite View the author
All Replies
avatar
翻过山峰看见云
deepin
2018-06-05 17:14
#1
据说工程路径里有中文也可能会报这个错
Reply View the author
avatar
fyl199113
deepin
2018-06-06 16:35
#2
https://bbs.deepin.org/post/157651
据说工程路径里有中文也可能会报这个错

我查了,没有中文
Reply View the author
avatar
bainian
deepin
2018-06-07 06:33
#3
先直接用命令检出工程,然后用as导入试试,
Reply View the author
avatar
fyl199113
deepin
2018-06-07 15:35
#4
https://bbs.deepin.org/post/157651
先直接用命令检出工程,然后用as导入试试,

恩恩,谢谢啦,昨天已经解决啦:把gradle.properties里头的这句话android.buildCacheDir =c:\\temp\\注释掉,这个工程就OK啦。这个貌似是缓存的东西,不知道为什么会导致一连串的错误!!
Reply View the author