我已经搜索了所有我没有得到任何关于这个错误的解决方案的地方,我不明白为什么我会得到这个错误,因为里面没有危险产品,请任何人指导解决方案,请这是主要活动,我需要对它进行任何更改吗?
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请检查此项以了解谷歌的错误
更新您的cordova版本
npm install -g cordova
cd my_project
cordova platform update android