[问题] android studio build failed问题

楼主: y30103123 (fishman)   2015-02-27 21:31:59
大家好,刚买了nordic Beacon,官方附上他们的source code
我使用android studio 把专案整个import进来却发生build 失败
不过我使用eclipse却能正常编译,我搞了2天都还解决不了,只好询问各位高手了.
专案有3个资料夹,我import主要的资料夹时,他会顺便把其他两个library顺便
import。
我看import.summary 他只有忽略txt档,其他的library,Dependencies里面都有
不过build却失败,以下为讯息
Error:(50, 35) No resource found that matches the given name (at
'layout_width' with value '@dimen/fab_size').
大概有十几个error,我看它是support v7的东西,不过dependencies里面确定有
support v7以及其他library
最后一个error为
Execution failed for task ':nRFBeacon:processDebugResources'.
> com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException: Process 'command
'E:\Tool\android_sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero
exit value 1
我看stack trace里面是说'compileDebug' ambiguous后面很多相似的Debug名称
我这两个问题卡了许久,google也找不太到
想问eclipse 能行但是android studio 却不行,是我的gradle问题吗?
ps.eclipse 成功的专案export出来之后只剩下 ambiguous的error
请帮我解惑.. 谢谢
楼主: y30103123 (fishman)   2015-02-28 10:37:00
我先放弃不找了,花太多时间在编译上先用eclipse还有使用他的API 谢谢~"~有时间再继续研究
作者: ssccg (23)   2015-02-28 15:15:00
既然是买的不能找support问?

Links booklink

Contact Us: admin [ a t ] ucptt.com