Importing “google-play-services_lib” into Eclipse crashes libgdx project

China☆狼群 提交于 2019-12-12 10:17:59

问题


I am trying to add google ad banners for my libgdx android game. After following the guide https://github.com/libgdx/libgdx/wiki/Google-Mobile-Ads-in-Libgdx-(replaces-deprecated-AdMob) and importing "google-play-services_lib" the game can't be started anymore. I am using Eclipse Luna. Eclipse keeps loading until death.


回答1:


For the proper import do it this way:

File -> Import -> Existing Android Project -> Browse the "google-play-services_lib" folder then make sure you have checked the "Copy project into workspace" box.

After you have imported the google-play-services_lib:

Right click to your project -> Properties -> Android , and then the bottom add the google-play-services_lib to your project.

This tutorial helped me with implementing the ads: http://www.androidbegin.com/tutorial/integrating-new-google-admob-banner-interstitial-ads/



来源:https://stackoverflow.com/questions/27237569/importing-google-play-services-lib-into-eclipse-crashes-libgdx-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!