我已經從github中將兩個存儲庫CastVideos-android和CastCompanionLibrary-android克隆到了我的AndroidStudioProjects文件夾,其名稱爲「CastVideos」和「CastCompanionLibrary」。當我嘗試建立CastVideos,Android Studio中,我得到無法構建CastVideos-android,錯誤:錯誤的路徑名稱
Gradle 'CastVideos' project refresh failed
Error:Bad pathname
當我在CastVideos目錄下運行「gradlew.bat建設」,我得到了下面:
C:\Users\Tim\AndroidStudioProjects\CastVideos>gradlew.bat build
Relying on packaging to define the extension of the main artifact has been depre
cated and is scheduled to be removed in Gradle 2.0
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'CastVideos'.
> Could not normalize path for file 'C:\Users\Tim\AndroidStudioProjects\CastVide
os\build\intermediates\exploded-aar\CastVideos...\CastCompanionLibrary\unspecifi
ed\debug'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 7.701 secs
C:\Users\Tim\AndroidStudioProjects\CastVideos>
這是我第一次嘗試在使用Eclipse開發之後使用Android Studio,所以我有點失落。有什麼建議麼?
錯誤路徑中是否有空格或奇怪的字符? – hoomi 2014-08-30 07:50:10
C:\ Users \ Tim \ AndroidStudioProjects \ CastVideos \ build \不存在以開始,C:\ Users \ Tim \ AndroidStudioProjects \ CastCompanionLibrary \ unspecified \ debug也不存在。 – aaearon 2014-08-30 07:58:37
您正在使用這些Android庫嗎? CastVideos和CastCompanionLibrary – hoomi 2014-08-30 07:59:48