gpt4 book ai didi

java - "Emulator: FramebufferData::restore: warning: a texture is deleted without unbinding FBO"是什么意思以及如何解决此问题?

转载 作者:行者123 更新时间:2023-12-02 03:10:16 25 4
gpt4 key购买 nike

我只是尝试运行我的应用程序,每次运行它时,它都会给我这条消息,并停止运行应用程序。 AVD 保持打开状态,我可以看到典型的 Android 主屏幕,但我的应用程序根本无法运行。 Gradle 构建已完成并正确构建,但我的应用程序仍然无法打开。

公共(public)类 MainActivity 扩展 AppCompatActivity {

String [] states = {"Alabama","Alaska","Arizona","Arkansas", "the rest of the US states"};

String storage = "";
Double stormCount = 0.0;
int yearChoice;
double xval = yearChoice - 1950;

Spinner stateSpinner;
EditText yearInput;
TextView networkResults;

@Override
protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

stateSpinner = findViewById(R.id.stateSpinner);
ArrayAdapter <String> adapter;
yearInput = findViewById(R.id.yearInput);
networkResults = findViewById(R.id.networkResults);

adapter = new ArrayAdapter<>(this,android.R.layout.simple_list_item_1,states);
stateSpinner.setAdapter(adapter);

yearChoice = Integer.valueOf(yearInput.getText().toString());

stateSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int position, long l) {

if(position == 0) {
stormCount = 14.5160471387124 * Math.pow(Math.E, .0742980947989195 * xval);
storage = "The amount of storms in "+states[position]+" in "+yearChoice+" is "+Math.floor(stormCount)+". This reading is about 70% accurate.";
}

if(position == 1) {
storage = ("Sorry, data from your region currently has too low an accuracy rate to be used");
}

if(position == 2) {
stormCount = (.000000293212037634147 * Math.pow(xval, 6)) - (.0000642428907817738 * Math.pow(xval, 5)) + (.00526808502644371 * Math.pow(xval, 4))
- (.195157071357244 * Math.pow(xval, 3)) + (3.27415865786315 * Math.pow(xval, 2)) - (20.6557307408656 * xval) + 35.8205191551242;
storage = ("The amount of storms in "+states[position]+" in "+yearChoice+" is "+Math.floor(stormCount)+". This reading is about 70% accurate.");
}

----数组中每个元素的更多 IF 语句----

        }

@Override
public void onNothingSelected(AdapterView<?> adapterView) {

}
});

}

public void submitButtonClicked(View v) {
networkResults.setText(storage);
}

最佳答案

这是一个特定的模拟器问题,而不是您的应用程序的问题。尝试干净启动虚拟设备:AVD 设备管理器,选择模拟器,点击“操作”>“删除数据”并重新开始。祝你有美好的一天。

关于java - "Emulator: FramebufferData::restore: warning: a texture is deleted without unbinding FBO"是什么意思以及如何解决此问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56998961/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com