运行报错提示:Log.w("EgretNative", "Versions of jar and so are different.");
if (!nativeAndroid.initialize("www.baidu.com"))
{
String nativePath=this.getFilesDir().getAbsolutePath()+"/"+"runtime-dex.jar";
File file=new File(nativePath);
file.setReadOnly();
nativeAndroid.initialize(main.gameUrl);
}
#只需关注以上代码,这段代码一般写在onCreate
setcontentView(nativeAndroid.getRootFrameLayout());
将上述文中出现的百度链接替换成自己的链接即可,上述代码只是举例子