打包百度的sdk,getUserPlugin()返回nil

打包百度的sdk,getUserPlugin()返回nil
请教这是什么问题?

if not g_anysdk_agent then
local appKey = “xx”
local appSecret = “xx”
local privateKey = “xx”
local oauthLoginServer=“xx”
g_anysdk_agent = AgentManager:getInstance()
–init
g_anysdk_agent:init(appKey,appSecret,privateKey,oauthLoginServer)
–load
g_anysdk_agent:loadALLPlugin()
end
if g_anysdk_agent and not g_user_plugin then
g_user_plugin = g_anysdk_agent:getUserPlugin()
if not g_user_plugin then
cclog(“g_user_plugin nil”)
return
end

检查AnySDK客户端里有没有把百度用户选上