我正在使用 Android Studio (v0.5.4) 构建应用程序。虽然我知道这是一个测试版 IDE,但到目前为止它对我来说运行得很好。我收到一个无法克服的错误。
Error:Execution failed for task ':gavi:compileDebugJava'. Compilation failed; see the compiler error output for details. Error:(9, 47) error: package com.google.appengine.tools.cloudstorage does not exist Error:(49, 9) error: cannot find symbol class GcsService
我的 gradle 文件看起来像这样
compile files('libs/appengine-api-1.0-sdk-1.8.9.jar',)
compile files('libs/google-api-client-1.17.0-rc.jar',)
compile files('libs/google-api-services-storage-v1beta2-rev42-1.17.0-rc.jar',)
This is the line that is causing the error : GcsService service = GcsServiceFactory.createGcsService();
I have a folder called 'libs' and the corresponding jar file are in there. What am I missing?
最佳答案
首先我会尝试编译 fileTree(dir: 'libs', include: '*.jar') 。它将获取库中的所有 jar 并包含它们。我希望你没有任何不想包含的 jar 。我也希望这能解决您的问题,因为我希望您拼写错误,因为 google-api-services-storage-v1beta2-rev42-1.17.0-rc.jar' 很拗口:)。
你有使用过 proguard 吗?如果是这样,我建议将其关闭,或尝试添加特定规则。
关于android - com.google.appengine.tools.cloudstorage 包不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22923663/