以下代码中的getText()
方法返回null
private TextView version;
protected void onCreate(Bundle savedInstanceState) {
version = findViewById(R.id.vers);
String versions = version.getText().toString(); //getText empty (Help)
if(versions =="1.4") {
splashThread.start();`
}
}
private void jsonParse() {
version.append("1.4");`
}