Android Sdk 工具修订版 22 问题? [英] Android Sdk tools Revision 22 issue?

查看:30
本文介绍了Android Sdk 工具修订版 22 问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将 Eclipse 中的 SDK 工具更新到修订版 22,从那时起我无法构建我的项目.具体来说,我的 Activity 中无法识别 R 类(我收到编译器错误),即使我手动导入,导入也无法正常工作.

I just updated the SDK tools in Eclipse to revision 22, and since then I cannot build my project. Specifically the R class is not recognized in my Activity (I was getting compiler errors) and even when I imported manually, again the import was not working.

此外,项目 gen 文件夹是空的,清理项目/工作区(启用 自动构建 选项)没有任何区别.

Additionally the project gen folder is empty, and cleaning the project/workspace (having build automatically option on) didn't make any difference.

这是一个已知问题吗?每个人都遇到过吗?有解决方法吗?也许 Google 只是希望我们尽快切换到 Android 平台?

Is this a known issue? Did it happen to everyone? Is there a workaround? Maybe Google just wants us to switch to Android platform the soonest possible?

推荐答案

我也遇到了更新的主要问题.就我而言,我的项目使用的库也依赖于另一个库.我发现我需要在项目的 Java 构建路径的 order/export 选项卡中选中 Android Private Libraries 框 - 以及我连接的每个库 -在设备上正确编译和运行应用程序.

I had major issues with the update as well. In my case my project uses a library that also depends on another library. I found that I needed to check the box for Android Private Libraries in the order/export tab of the Java Build Path for the project - and each of my connected libraries -- to properly compile and run the app on a device.

其他一些人表示您还需要检查 Android Dependencies 但这对我的项目来说似乎没有必要.

Some others have indicated that you need to also check Android Dependencies too but that doesn't seem necessary for my project.

这篇关于Android Sdk 工具修订版 22 问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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