【发布时间】:2015-12-30 07:45:53
【问题描述】:
我已将 Android Studio 更新为 1.4,还更新了 gradle 版本(1.4.0-beta3)。
这是我的 build.gradle 文件
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
//classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.android.tools.build:gradle:1.4.0-beta3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
//ViewPagerIndicator
maven { url "http://dl.bintray.com/populov/maven" }
jcenter()
maven { url 'http://devrepo.kakao.com:8088/nexus/content/groups/public/' }
}
}
这就是构建结果。
信息:Gradle 任务 [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:assembleDebug] :app:preBuild 最新 :app:preDebugBuild 最新 :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72221Library UP-TO-DATE :app:prepareComAndroidSupportCardviewV72221Library UP-TO-DATE :app:prepareComAndroidSupportDesign2221Library UP-TO-DATE :app:prepareComAndroidSupportGridlayoutV72221Library UP-TO-DATE :app:preDebugAndroidTestBuild UP-TO-DATE :app:prepareComAndroidSupportMultidex101Library UP-TO-DATE :app:prepareComAndroidSupportPaletteV72221Library UP-TO-DATE :app:prepareComAndroidSupportRecyclerviewV72221Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42221Library UP-TO-DATE :app:prepareComFacebookAndroidFacebookAndroidSdk410Library UP-TO-DATE :app:prepare ComGithubLawloretienneQuickreturn001Library UP-TO-DATE :app:prepare ComGithubRey5137Material121Library UP-TO-DATE :app:prepareComKakaoSdkAuth112Library UP-TO-DATE :app:prepareComKakaoSdkKakaolink112Library UP-TO-DATE :app:prepareComKakaoSdkKakaostory112Library UP-TO-DATE :app:prepareComKakaoSdkKakaotalk112Library UP-TO-DATE :app:prepareComKakaoSdkUsermgmt112Library UP-TO-DATE :app:prepareComKakaoSdkUtil112Library UP-TO-DATE :app:prepareComViewpagerindicatorLibrary241Library UP-TO-DATE :app:prepareComWefikaFlowlayout030Library UP-TO-DATE :app:prepareDeHdodenhofCircleimageview130图书馆最新 :app:prepareDebugDependencies :app:compileDebugAidl 最新 :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig 最新:app:generateDebugAssets 最新:app:mergeDebugAssets 最新:app:generateDebugResValues 最新 :app:generateDebugResources 最新 :app:mergeDebugResources 最新:app:processDebugManifest 最新 :app:processDebugResources 最新 :app:generateDebugSources 最新 :app:prepareComAndroidSupportMultidexInstrumentation101Library 最新:app:prepareDebugAndroidTestDependencies :app:compileDebugAndroidTestAidl 最新 :app:processDebugAndroidTestManifest 最新 :app:compileDebugAndroidTestRenderscript UP-TO-DATE :app:generateDebugAndroidTestBuildConfig UP-TO-DATE :app:generateDebugAndroidTestAssets UP-TO-DATE :app:mergeDebugAndroidTestAssets 最新 :app:generateDebugAndroidTestResValues UP-TO-DATE :app:generateDebugAndroidTestResources UP-TO-DATE :app:mergeDebugAndroidTestResources 最新 :app:processDebugAndroidTestResources 最新 :app:generateDebugAndroidTestSources 最新 :app:compileDebugJavaWithJavac 最新 :app:compileDebugNdk 最新:app:compileDebugSources 最新 :app:transformClassesAndResourcesWithExtractJarsForDebug 最新 :app:transformClassesWithJarMergingForDebug 最新 :app:collectDebugMultiDexComponents 最新 :app:transformClassesWithMultidexlistForDebug 最新 :app:transformClassesWithDexForDebug 最新 :app:processDebugJavaRes 最新 :app:transformResourcesWithMergeJavaResForDebug 失败
错误:任务执行失败 ':app:transformResourcesWithMergeJavaResForDebug'.
java.io.FileNotFoundException: D:\Develop\workspace\b2c\Apps\app-meterial\app\build\intermediates\transforms\RESOURCES\FULL_PROJECT\mergeJavaRes\debug\META-INF\license\LICENSE.base64。文本文件 (지정된 경로를 찾을 수 없습니다)
信息:BUILD FAILED 信息:总时间:5.62 秒 信息:1 错误信息:0 警告信息:查看完整 控制台输出
有什么问题? 感谢您的关注,期待您的回音!
最好的问候。
【问题讨论】:
-
显示您的控制台数据
-
我遇到了同样的问题。我不知道是什么原因造成的。
-
我已经解决了。只需在我的 build.gradle 文件中将 [classpath 'com.android.tools.build:gradle:1.4.0-beta3'] 替换为 [classpath 'com.android.tools.build:gradle:1.2.3'] 即可。但是,我想知道不同的解决方案。
-
Jiho 的方法也适用于我。谢谢
-
你不必使用 old 1.2.3,1.3.1 也可以 :) 始终使用最新的稳定版(来自mvnrepository.com)
标签: android android-studio gradle build.gradle