美文网首页
android 奇怪的bug们

android 奇怪的bug们

作者: 也无风雨也无晴_928b | 来源:发表于2020-01-07 11:03 被阅读0次

1.无法下载依赖,ssr端口改了..
2.ssl peer问题:把依赖库的https改为http
3.readtime out:尝试不用翻墙,如果关掉翻墙还显示翻墙,删除.gradle文件夹下gradle.properties文件
4.如果某些东西死都下不来,向下调整jcenter()的位置,因为他包括来很多?

jcenter seems to have wiped a lot of dependencies lately
make sure to move down
jcenter() to the bottom of the repositories for the build.gradle + app/build.gradle
this solved our build and documented on many other places. this has nothing todo with react-native-camera it self

参考

  • RecyclerView EditText错乱
val inputNum = helper.getView<EditText>(R.id.stock_real_number)
        inputNum.addTextChangedListener(object : TextWatcher {
            override fun afterTextChanged(s: Editable?) {
                try {
                    if (inputNum.text.toString().toDouble() < 0) {
                        inputNum.setText(0.toString())
                    }
//                            item.partsInfo.partsStockTotal.localCheckListAmont = helper.getView<EditText>(R.id.stock_real_number).text.toString().toDouble()
                    val input = inputNum.text.toString().toDouble()
                    data[helper.layoutPosition].partsInfo.partsStockTotal.localCheckListAmont = input
                } catch (e: Exception) {
                }
            }

            override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {
            }

            override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
            }
        })
  • 怎么处理崩溃后logcat消失? 选择过滤为:nofilter即可。。。
while (`is`.read(buffer).also { byteCount = it } != -1) {
                    fos.write(buffer, 0, byteCount)
                }
  • 莫名其妙的覆盖问题:检查elevation属性
  • EditText可以获取焦点,但没有光标,不弹键盘,也无法输入
// 外边是横向的linear均分
// EditText高是wrap时出现,我暂时直接写死edit高了
<LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="vertical"
            android:layout_marginLeft="5dp"
            >
            <EditText
                android:id="@+id/tv_benci"
                android:layout_width="match_parent"
                android:layout_height="23dp"
                android:inputType="number|numberDecimal"
                android:gravity="end"
                android:textColor="@color/colorRed"
                android:background="@color/colorTransparent"
                android:textSize="17sp"
                android:text="@={data.chargemoney}"
                tools:text="99.0"
                />
            <TextView
                android:id="@+id/gang"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="end"
                android:text="/"
                />
            <EditText
                android:id="@+id/tv_jiaqiliang"
                android:layout_width="match_parent"
                android:layout_height="23dp"
                android:inputType="number|numberDecimal"
                android:gravity="end"
                android:textColor="@color/colorRed"
                android:background="@color/colorTransparent"
                android:textSize="17sp"
                android:text="@={data.chargeoilnum}"
                tools:text="99.0"
                />
        </LinearLayout>
  • 序列化中parcelable涉及到继承时,子类不需要实现parcelable接口,注意super.writeTo调用时机,我放到最后一个就可以了。kotlin编辑器默认是在第一个;嵌套parcelable下,内部parcelable一直报classnotfound,试着把classloader换成外边类的。。

相关文章

  • android 奇怪的bug们

    1.无法下载依赖,ssr端口改了..2.ssl peer问题:把依赖库的https改为http3.readtime...

  • anroid studio下R文件报红 工程可以正常使用

    在android studio开发android过程中,当app工程特别大时,会有一个奇怪的bug,工程运行没有问...

  • 一个 fitSystemWindows 失效问题的解决实例

    ​ 在写Android音乐播放器 Quiet 的时候,遇到一个奇怪的BUG, 布局的 fitSystemWin...

  • 奇怪的“bug”

    今天是1月1日,为了一些事情,我把电脑的时间调到1月10日进行工作。期间我用VS2010发布过我的web程序。发布...

  • 奇怪的bug

    昨天用php curl模拟post发送请求,测试环境一切正常线上却返回了false。 调查了大半天解决了问题,但是...

  • 奇怪的bug

    bug年年有,最近特别多,今天用我的小米笔记本下载点东西,路由器在我面前,却死活连不上,好不容易连上之后显示有In...

  • 奇怪的bug

    1、3S提示,一闪而过:sources——右边暂停按钮 2、动态下拉框定位快捷键:ctrl+shift+C 3、e...

  • React native 搭建UI遇到的疑难杂症

    特此记录一些搭建UI遇到奇怪的bug 1.Only Android,在布局中使用了position:'absolu...

  • android之color不能单独作为标签使用,否则报tag r

    我发现android studio有一个奇怪的现象,不知是不是bug。当我使用, 用单独标签“color”,用te...

  • vue 奇怪的Bug

    标题虽然这样起,但是大部分都不是vue的问题,是代码问题 [Vue warn]: $listeners and $...

网友评论

      本文标题:android 奇怪的bug们

      本文链接:https://www.haomeiwen.com/subject/kwlmpctx.html