找不到BaseGameUtils.apk [英] Could not find BaseGameUtils.apk

查看:151
本文介绍了找不到BaseGameUtils.apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去的两天里,我一直试图将Google Play游戏服务简单地集成到我的游戏中.我已按照此处的说明进行操作...

For the last 2 days I've been trying to simply get Google play game services Integrated into my game. I've followed the instructions here...

https://github.com/playgameservices/android- basic-samples/blob/master/README.md

...很多次.我一直在尝试使用Gradle进行构建,但现在,我将只专注于Eclipse的构建,直到可行为止.我已将BaseGameUtils项目作为Android库项目导入到我的工作区中.我的游戏android项目具有两个Android库依赖项:google-play-services_lib和BaseGameUtils. Eclipse中的所有内容均显示无任何错误.当我在真实设备上构建并运行时,我看到一条错误消息-

...many many times. I have been trying to get it to build with Gradle but for now, I'll just focus on Eclipse building until that works. I've imported BaseGameUtils project into my workspace as an Android library project. My game android project has two Android library dependencies: google-play-services_lib and BaseGameUtils. Everything in Eclipse is showing without any errors. When I build and run on a real device, I see an error that says -

[2014-10-27 20:39:25-BaseGameUtils]找不到BaseGameUtils.apk!

[2014-10-27 20:39:25 - BaseGameUtils] Could not find BaseGameUtils.apk!

我不知道为什么它甚至还在寻找BaseGameUtils.apk,因为它应该是一个Android库.也就是说,我不确定如何真正处理Android库,因此也许应该是.apk.无论如何,我都找不到有关此错误的任何信息,并且错误消息并没有给我太多帮助.我尝试过调整构建路径"中的内容,但是没有运气.我确实早些时候必须删除构建路径中的一些冗余依赖项,因为我遇到了某种重复的DEX错误,但是我不确定这与这有任何关系.我迫切需要帮助,有人知道吗?

I don't know why it's even looking for BaseGameUtils.apk since it should be an Android library. That said, I'm not sure how an Android library is really handled so maybe it should be a .apk. In any case, I couldn't find any information on this bug and the error message doesn't give me much to work with. I've tried adjusting things in the Build Path but no luck. I did have to remove some redundant dependencies in my Build Path earlier since I was getting some kind of duplicate DEX error but I'm not sure that's related in any way to this. I am desperate for help, anyone have any idea?

推荐答案

请您检查BaseGameUtils是否选中了是库",而您的应用程序项目中没有选中了是库".

Please would you check that BaseGameUtils has "is library" checked and that your application project DOES NOT have "is library" checked.

如果这是正确的,那么请您详细检查以下内容(尤其是有关检查和取消选中是库"的信息):

If this is correct, then please would you review the following in detail (especially as regards checking and unchecking "is library" ) :

Android Eclipse-找不到* .apk

我认为DEX错误与同一个库的两个或多个版本有关.具体的GameHelper错误是什么?

I presume that the DEX error related to two or more versions of the same lib. What is the specific GameHelper error ?

总的来说,我发现首先启动一个示例项目会很有成效,以确保在开始将游戏服务集成到自己的项目中之前环境能够正常运行.如果您一直在更改构建路径,那么从头开始并获得示例工作可能会更快.过去,我一直遵循这些说明,它们是准确的.

As a general point, I find it productive to get a sample project working first to ensure that I have got the environment working correctly before I start integrating game services into my own projects. If you have been changing the build path then it may be quicker to start from scratch and get a sample working. I have followed those instructions in the past and they are accurate.

这篇关于找不到BaseGameUtils.apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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