-1

我已经搜索了所有关于此错误的解决方案,但我无法理解为什么会出现此错误对其进行任何更改?

MainActivity.java
public class MainActivity extends AppCompatActivity implements OnNavigationItemSelectedListener {

    DrawerLayout drawerLayout;
    View content;
    private ActionBarDrawerToggle mDrawerToggle;
    private boolean home = true;
    TextView tv_name,tv_phone;
    Session session;
    String seson_name,seson_phone;
    SharedPreferences.Editor logineditor;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        // Session class instance
        session = new Session(getApplicationContext());
        // get user data from session
        HashMap<String, String> user = session.getUserDetails();
        // name
        seson_name = user.get(Session.KEY_UNAME);
        seson_phone= user.get(Session.KEY_PHONE);

        tv_name=(TextView)findViewById(R.id.hd_name);
        tv_phone=(TextView)findViewById(R.id.hd_phone);

        tv_name.setText(seson_name);
        tv_phone.setText(seson_phone);

这是项目结构,请检查如何在此处添加cordova 请检查此以了解来自谷歌的错误

4

1 回答 1

0

更新您的科尔多瓦版本

npm install -g cordova
cd my_project
cordova platform update android
于 2015-11-18T06:47:40.340 回答