We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import android.content.Context; import io.flutter.app.FlutterApplication;
import com.baidu.mobads.action.BaiduAction;
public class App extends FlutterApplication { @OverRide public void onCreate() { super.onCreate(); // 调用SDK初始化接口: // 1. 调用位置:必须在Application的onCreate方法中调用。 // 2. 必须在其他的数据上报接口调用之前调用,否则其他接口都将无法使用。 // USER_ACTION_SET_ID:SDK应用ID,需要在百度申请; Constants.APP_SECRET_KEY:SDK应用密钥,需要在百度申请 // 是否在控制台输出⽇志,可⽤于观察⽤⼾⾏为⽇志上报情况,建议仅在调试时使⽤,release版 请设置为false ! BaiduAction.setPrintLog(true); BaiduAction.init(this, 111, "111111"); // 设置应用激活的间隔,此方法在初始化成功后才有意义,建议在初始化后执行,具体执行的时机没有限制 BaiduAction.setActivateInterval(this, 7); System.out.print("-----------------FlutterApplication.App.start----------------------"); } }
The text was updated successfully, but these errors were encountered:
去掉jverify库就能初始化成功,加了就不行
Sorry, something went wrong.
No branches or pull requests
import android.content.Context;
import io.flutter.app.FlutterApplication;
import com.baidu.mobads.action.BaiduAction;
public class App extends FlutterApplication {
@OverRide
public void onCreate() {
super.onCreate();
// 调用SDK初始化接口:
// 1. 调用位置:必须在Application的onCreate方法中调用。
// 2. 必须在其他的数据上报接口调用之前调用,否则其他接口都将无法使用。
// USER_ACTION_SET_ID:SDK应用ID,需要在百度申请; Constants.APP_SECRET_KEY:SDK应用密钥,需要在百度申请
// 是否在控制台输出⽇志,可⽤于观察⽤⼾⾏为⽇志上报情况,建议仅在调试时使⽤,release版 请设置为false !
BaiduAction.setPrintLog(true);
BaiduAction.init(this, 111, "111111");
// 设置应用激活的间隔,此方法在初始化成功后才有意义,建议在初始化后执行,具体执行的时机没有限制
BaiduAction.setActivateInterval(this, 7);
System.out.print("-----------------FlutterApplication.App.start----------------------");
}
}
The text was updated successfully, but these errors were encountered: