当尝试配置Google Apps Endpoints客户端库时,单击“添加为库”时,Android Studio:incorrectOperationException异常 [英] Android Studio: IncorrectOperationException when 'Add as Library' is clicked whilst trying to configure Google Apps Endpoints client libraries

查看:1003
本文介绍了当尝试配置Google Apps Endpoints客户端库时,单击“添加为库”时,Android Studio:incorrectOperationException异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试生成并使用Android客户端库,用于遵循本指南 https://developers.google.com/appengine/docs/python/endpoints/consume_android

I am trying to generate and use the android client libraries for a Python google app engine project following this guide https://developers.google.com/appengine/docs/python/endpoints/consume_android

每次我进入这个步骤


选择刚刚添加的库,右键单击,然后选择添加为
库到您的项目。

Select the library you just added, right-click, then select Add As Library to your project.

我得到以下异常:


UnsoperationException:不能更改文件外部命令
或撤消透明操作。

IncorrectOperationException: Must not change document outside command or undo-transparent action.

我是Android Studio的新手,但似乎不找到任何有关如何获取端点客户端库在Eclipse中工作的资源。有没有人遇到这个问题?

I'm new to Android Studio but can't seem to find any resources on how to get endpoints client libraries working in Eclipse. Has anyone else experienced this problem?

推荐答案

这是Android Studio中的一个临时错误。而不是使用添加为库选项(由于 https://code.google.com/p/android/issues/detail?id=66610 ),而转到文件> 项目结构> < b>模块> 您的模块> 依赖关系> + 按钮,文件依赖关系 jar从文件选择器。

This is a temporary bug in Android Studio. Instead of using the Add as Library option (which wouldn't work anyway due to https://code.google.com/p/android/issues/detail?id=66610), instead go to File > Project Structure > Modules > your module > Dependencies > + button, File dependency, and select your jar from the file chooser.

这篇关于当尝试配置Google Apps Endpoints客户端库时,单击“添加为库”时,Android Studio:incorrectOperationException异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆