Tag: 粘性

kotlin翻新 – 背景粘性并发标记扫描GC释放65326(1448KB)AllocSpace对象,62(1736KB)LOS对象,

我试图做一个简单的REST请求与Kotlin Retrofit和我得到了很多的GC错误。 我真的不知道如何解决这个问题。 我试图把更多的内存放在模拟器上,但问题仍然存在。 我的代码是: val retrofit =Retrofit.Builder().baseUrl("Url") .addConverterFactory(GsonConverterFactory.create()) .build() val retrofitAPI = retrofit.create(ApiServices::class.java) val call = retrofitAPI.getBarcharts(dashboardRequestBean) call.enqueue(object : Callback<ResponseChartModel<BaseChartModel>> { override fun onResponse(call: Call<ResponseChartModel<BaseChartModel>>? , response: Response<ResponseChartModel<BaseChartModel>>?) { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun onFailure(call: Call<ResponseChartModel<BaseChartModel>>?, t: Throwable?) { Toast.makeText(this@MainActivity, t?.message, […]