Monday, November 24, 2014

11-24 22:27:37.685: E/AndroidRuntime(8653): Caused by: java.lang.InstantiationException: can't instantiate class com.pkrss.webview_core.WebViewHasControlActivity$FragmentOptionsDialog; no empty constructor

1.error:

11-24 22:27:37.685: E/AndroidRuntime(8653): Caused by: java.lang.InstantiationException: can't instantiate class com.pkrss.webview_core.WebViewHasControlActivity$FragmentOptionsDialog; no empty constructor



2.fixed:



old:
public class WebViewHasControlActivity{
private class FragmentOptionsDialog extends FragmentBaseDialog {
public FragmentOptionsDialog(int arg1){
}
}
}

new:
public class WebViewHasControlActivity{
}

public class FragmentOptionsDialog extends FragmentBaseDialog {
public FragmentOptionsDialog(){
}

public void setArg1(int arg1){
}
}



3.Last



Thanks!

No comments: