我正尝试按照本指南 https://developers.google.com/appengine/docs/python/endpoints/consume_android 为 Python 谷歌应用程序引擎项目生成和使用 android 客户端库。
每次我走到这一步
Select the library you just added, right-click, then select Add As Library to your project.
我得到以下异常:
IncorrectOperationException: Must not change document outside command or undo-transparent action.
我是 Android Studio 的新手,但似乎找不到任何关于如何让端点客户端库在 Eclipse 中工作的资源。有没有其他人遇到过这个问题?
最佳答案
这是 Android Studio 中的一个临时错误。不要使用“添加为库”选项(由于 https://code.google.com/p/android/issues/detail?id=66610 而无法使用),而是转到 File> Project Structure> Modules> your module> Dependencies> + 按钮,File dependency,然后从文件选择器中选择你的 jar .
关于python - 安卓工作室 : IncorrectOperationException when 'Add as Library' is clicked whilst trying to configure Google Apps Endpoints client libraries,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22259669/