无法转换类型&#39; Swift.Dictionary的值<swift.string,any =“”>&#39; (线程1:信号SIGABRT)

时间:2018-04-12 17:48:52

标签: swift

当我运行应用程序时,我在下面的行中收到错误(主题1:信号SIGABRT)。

public class TabFragment_malica1 extends Fragment {

  public TabFragment_malica1() {

  }

  @Override
  public View onCreateView(LayoutInflater inflater,
    ViewGroup container, Bundle savedInstanceState) {


    Bundle bundle = this.getArguments();
    if (bundle != null) {
      String text = bundle.getString("TEST");
      Log.d("TEST LOG", text);
    } else {
      Log.d("ERROR", "ERROR!");
    }

    return inflater.inflate(R.layout.tab_fragment_malica1, container, false);

  }
}

0 个答案:

没有答案