loadPlugin("IAPGooglePlay") problem with 3.0 b2

I’m trying to use googleplay plugin with cocos2d-x 3.0 beta 2.
I followed instruction /plugin/plugins/googleplay/proj.android/Notes.txt.
and publish plugins by /plugin/tools/publish.sh.

when run on device, logcat says below.

02-27 15:52:29.681: D/PluginFactory(30349): Java class name of plugin IAPGooglePlay is : org/cocos2dx/plugin/IAPGooglePlay
02-27 15:52:29.681: D/PluginJniHelper(30349): JavaVM is NULL
02-27 15:52:29.681: D/PluginJniHelper(30349): Failed to get JNIEnv
02-27 15:52:29.681: D/PluginFactory(30349): Can't find method initPlugin in class org.cocos2dx.plugin.PluginWrapper

after publish plugins, I found just 9 plugins in /plugin/publish/plugins/.
no googleplay plugin.
what should i do to use IAPGooglePlay plugin?

You must modify the file jni/hellocpp/main.cpp

#include "PluginJniHelper.h"
#include "PluginUtils.h"

void cocos_android_app_init (struct android_app* app) {
    LOGD("cocos_android_app_init");
    AppDelegate *pAppDelegate = new AppDelegate();
    PluginJniHelper::setJavaVM(app->activity->vm);
    PluginJniHelper::setClassLoaderFrom(app->activity->clazz);
    cocos2d::plugin::PluginUtils::initPluginWrapper(app);
}

I updated cocod2d-x to rc1.
Android main.cpp was changed

void cocos_android_app_init (struct android_app* app) {
    LOGD("cocos_android_app_init");
    AppDelegate *pAppDelegate = new AppDelegate();
}

to

void cocos_android_app_init (JNIEnv* env, jobject thiz) {
    LOGD("cocos_android_app_init");
    AppDelegate *pAppDelegate = new AppDelegate();
}

then how can i set javaVM for cpp?

I searched sample for plugins under cocos2d-x-3.0rc1/plugin/samples/HelloPlugins/proj.android/jni/hellocpp/main.cpp.
but it seems not updated for rc1.

I think that struct android_app* app is no longer available as a consequence of the removal of NativeActivity. See http://www.cocos2d-x.org/forums/6/topics/48163

Maybe someone with better knowledge than me can explain it better.