android - com.google.appengine.tools.cloudstorage 包不存在

标签 android google-app-engine android-studio google-cloud-storage android-gradle-plugin

我正在使用 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/

相关文章:

android - GetByteArrayRegion 导致 ArrayIndexOutOfBoundsException

android - 在 Google Play 商店中自动插入应用内商品

python - 在 App Engine 上提供可执行文件会更改文件权限

spring - 与 Appengine 一起工作的 Spring 框架的哪些部分

安卓工作室 : Multiple dex files define Lcom/sun/activation/registries/LineTokenizer;

安卓错误 :react-native-google-signin:processReleaseResources

android - 手机关机时触发事件?

python - 我可以跨 GAE Pipeline API worker 保持状态吗?

android - 带有 setGroupSummary(true) 的通知在 Android N 中不可见

android - android studio 的 Jetpack Compose 查看器中是否有自动刷新?