2

Android Studio (v0.5.4)를 사용하여 앱을 만들고 있습니다. 이것이 베타 IDE라는 것을 이해하는 동안 그것은 지금까지 나를 위해 잘 작동했다. 내가 과거에 얻을 수없는 오류가 발생했습니다. (: 포함, 'libs와'디렉토리 '*의 .jar')com.google.appengine.tools.cloudstorage 패키지가 없습니다.

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을 파일 내가이 fileTree를 컴파일하려고 할 것이

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?

답변

2

먼저 보이는 대신. 그것은 libs에있는 모든 항아리를 움켜 잡고 그들을 포함합니다. 나는 당신이 포함하고 싶지 않은 항아리가 없기를 희망합니다. 또한 google-api-services-storage-v1beta2-rev42-1.17.0-rc.jar '이 (가) 입을 열지 못하기 때문에 철자가 잘못 되었으면 좋겠다.

우연히 프로 가드를 사용하고 있습니까? 그렇다면이 문제를 해결하거나 특정 규칙을 추가하는 것이 좋습니다.

+0

내가 제안한 Gradle 변경을 시도했지만 여전히 동일한 오류가 발생합니다. 프로 가드는 릴리스 용 항목 만 가지고 있으며 어쨌든 거짓으로 설정되어 있기 때문에 문제는 아닌지 의심 스럽습니다. 다른 제안? –

+0

은 범인을 제거하고 Android Studio 메뉴를 통해 내 앱에 백엔드를 추가하는 결과를 가져 왔습니다. 이것은 필요한 모든 의존성이 추가/해결 되었기 때문에이 문제를 해결했습니다. –

관련 문제