【问题标题】:Importing "google-play-services_lib" into Eclipse crashes libgdx project将“google-play-services_lib”导入 Eclipse 会导致 libgdx 项目崩溃
【发布时间】:2014-12-01 21:22:18
【问题描述】:

我正在尝试为我的 libgdx 安卓游戏添加谷歌广告横幅。遵循指南https://github.com/libgdx/libgdx/wiki/Google-Mobile-Ads-in-Libgdx-(replaces-deprecated-AdMob) 并导入“google-play-services_lib”后,游戏无法再启动。我正在使用 Eclipse Luna。 Eclipse 一直加载直到死亡。

【问题讨论】:

    标签: eclipse libgdx google-play-services


    【解决方案1】:

    为了正确导入,这样做:

    文件 -> 导入 -> 现有 Android 项目 -> 浏览“google-play-services_lib”文件夹,然后确保选中“将项目复制到工作区”框。

    导入 google-play-services_lib 后:

    右击你的项目 -> 属性 -> Android ,然后在底部添加 google-play-services_lib 到你的项目中。

    本教程帮助我实施了广告:http://www.androidbegin.com/tutorial/integrating-new-google-admob-banner-interstitial-ads/

    【讨论】:

    • 好的,谢谢您,我已按照您的指示从 eclipse luna 更改为 ADT bundle eclipse。现在可以使用了!
    猜你喜欢
    • 2016-05-21
    • 1970-01-01
    • 2015-09-19
    • 2023-03-14
    • 1970-01-01
    • 2015-11-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多