建设礼服骑手的Andr​​oid机应用JNI的LIB [英] Building a jni lib for tux rider android appliction

查看:106
本文介绍了建设礼服骑手的Andr​​oid机应用JNI的LIB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载drodin的Andr​​oid应用程序企鹅骑士来源$ C ​​$ C,以构建它我的自我。
https://github.com/drodin/TuxRider

I've downloaded drodin's android app "Tux rider" source code, in order to build it my self. https://github.com/drodin/TuxRider

在应用程序中,有一个名为tuxrider

in the application, there's a call for a library called "tuxrider"

System.loadLibrary("tuxrider");

但没有这样的库,和我没有设法弄清楚如何构建一个来自那里的所有文件。

but there's no such library, and I'm not managing to figure out how to build one from all the files there.

在此先感谢您的任何建议。

Thanks in advance for any suggestions.

推荐答案

最后,我menaged解决的一个问题。它是由GoogleAds造成的,而不是由 tuxrider 库。简单地说,在注释 MainActivity.java GoogleAds的所有提。
这包括:

Finally I menaged to solve a problem. It was caused by GoogleAds, not by tuxrider library. Simply, comment all mentioning of GoogleAds in MainActivity.java. That includes:

//import com.google.ads.AdRequest;
//import com.google.ads.AdSize;
//import com.google.ads.AdView;
...
//  private static AdView mAdView = null;
...
//      mAdView = new AdView(this, AdSize.BANNER, "a14d3678cfc9fb7");

//      AdRequest adRequest = new AdRequest();
//      adRequest.addTestDevice(AdRequest.TEST_EMULATOR);

//      mAdView.loadAd(adRequest);
//      mAdView.setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL);
...
//      mFrameLayout.addView(mAdView, new LayoutParams(
//              LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
...
//          if (mAdView != null) {
//              mAdView.setVisibility(View.VISIBLE);
//          }
...
//          if (mAdView != null) {
//              mAdView.setVisibility(View.INVISIBLE);
//          }

在这之后,都应该很好地工作。 CHEARS!

After this, all should work fine. Chears!

这篇关于建设礼服骑手的Andr​​oid机应用JNI的LIB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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