问题描述
问题: 该应用程序成功构建和存档,但不会分发。下面列出的错误。更新到 16.9.2 后开始出现问题。更新前一切正常。
我已经尝试过的事情:
- 清理解决方案,删除 Mac 和 PC 上的 bin 和 obj 文件夹,重新启动 PC 和 Mac,重建、构建
- 清除了在 Mac 和 PC 上重新创建和重新安装的所有配置文件和证书
- 将手动切换为自动预置构建和重复
- 确保应用面向最新的 SDK 并设置为发布模式
- 确保应用 ID 与配置文件匹配
错误:
offersAdapter.addLoadStateListener { updateUiOnNewLoadSate(it) }
private fun updateUiOnNewLoadSate(loadState: CombinedLoadStates) {
Timber.i("STATE $loadState")
// Show empty view if results are less or equal 10
val displayEmptySearch =
loadState.source.refresh is LoadState.NotLoading && loadState.append.endOfPaginationReached && offersAdapter.itemCount <= 10 && loadStatesCounter > 1
if (displayEmptySearch) {
//here I display the empty view as a part of the
//infinite scrolling recyclerview by using concatAdapter
concatAdapter.addAdapter(emptyViewAdapter)
} else {
concatAdapter.removeAdapter(emptyViewAdapter)
}
loadStatesCounter++ //only apply above block when loadStatesCounter > 1
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)