问题

作者: 056cc6443751 | 来源:发表于2018-12-18 15:13 被阅读0次

装android sdk的时候把以前的sdk目录删除了,造成以下错误

需要点击

然后就会自动去下好了。

另外在运行 react-native run-android的时候弹出Unable to load script from assets index.android.bundle的错误,搜了下SO找到了解决方法

1.(in project directory) mkdir android/app/src/main/assets

2.react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

3.react-native run-android

https://stackoverflow.com/questions/44446523/unable-to-load-script-from-assets-index-android-bundle-on-windows

Could not find property 'MYAPP_RELEASE_STORE_PASSWORD' on SigningConfig_Decorated

MYAPP_RELEASE_STORE_FILE=KEYSTORE_NAME.keystore

MYAPP_RELEASE_KEY_ALIAS=YOUR_ALIAS

MYAPP_RELEASE_STORE_PASSWORD=123456

MYAPP_RELEASE_KEY_PASSWORD=123456

Cannot read property 'State' of undefined

查了下是GestureHandler.js 调用的RNGestureHandlerModule.State这行报错误,google的结果是把react-native-gesture-handler移除再安装

npm install --save react-native-gesture-handler

react-native link react-native-gesture-handler

https://stackoverflow.com/questions/53391855/undefined-is-not-an-object-after-updating-react-navigation-to-v3

在启动两个模拟器的时候,直接调用react-native run-android --deviceId=emualte-xxx,会报错,找不到mainActivity,把另外一个关掉可以了

对着https://reactnative.cn/docs/0.43/signed-apk-android.html 导出android的时候报这个错error duplicate resources,参考

https://stackoverflow.com/questions/52632950/react-native-0-57-1-android-duplicate-resources解决

连手机报这个错误

https://stackoverflow.com/questions/44446523/unable-to-load-script-from-assets-index-android-bundle-on-windows

如下解决

(in project directory) mkdir android/app/src/main/assets

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

react-native run-android

使用react-native-video后,build.gradle中 minSdkVersion = 26

然后cd android,gradlew clean

react-native-vector-icons 在安卓上不显示

Edit android/app/build.gradle ( NOT android/build.gradle ) and add the following:

apply from:"../../node_modules/react-native-vector-icons/fonts.gradle"

couldn't find DSO to load: libreactnativejni.so 

在用这个的时候发生了以下错误,couldn't find DSO to load: libreactnativejni.so,照帖子的方式在app/build.gradle中添加

https://stackoverflow.com/questions/43368926/android-reactnative-java-lang-unsatisfiedlinkerrorcould-find-dso-to-load-libre

未解决

在android机usb连接的时候

Could not run adb reverse: Command failed: C:\Users\Administrator\AppData\Local\Android\Sdk/platform-tools/adb -s cba0167a reverse tcp:8081 tcp:8081

这个用了很久的时间搜索也没解决

开了个模拟器可以,现在模拟器上测试

今天搜到了adb reverse得安卓5.0以上,或者手机和电脑在一个wifi下用wifi

https://stackoverflow.com/questions/31525431/getting-error-closed-twice-on-adb-reverse/41013327#41013327

ScrollableTabView

点击标题无法点击,内容也不显示的时候,检查下它的parent的flex有没有被设置成1

查看崩溃信息

adb logcat AndroidRuntime:E *:S

清除

gradlew clean

导出apk

https://facebook.github.io/react-native/docs/signed-apk-android.html

$ cd android

$ ./gradlew assembleRelease

adb install $file; 

注意下如果出来的是unsigned,那么看下有没有遗漏修改 buildTypes {

        release {

            ...

            signingConfig signingConfigs.release

        }

    }

C:\Python27\python.exe systrace.py --time=10 -o trace.html sched gfx view -a com.doubanmovie

相关文章

  • 问题,不是问题;问题,还是问题

    问题,不是问题 今天,是到新校舍的第一天。没水没电没床铺,教室里连黑板都没有。面对诸多问题,幸运的是...

  • 问题问题还是问题?

    问题实在是太多了!菜要这样做,不这样做是问题;饭没煮好,也是问题;自己不知道学会搞吃的也是问题;生活好像只剩下无尽...

  • 问题不是问题,如何对待问题才是问题。

    这几天身体状态一直不太好,反复头疼,但仍然坚持上课,我知道我要什么。我渴望找到那个自由绽放的自己。 早上怀着期待的...

  • “问题”不是问题,认为“是问题”才是问题

    大概从一个多星期前,腹部就开始有间断的疼痛感了,有时甚至会很难受。这种感觉在今天上午坐车时达到了最强烈,我简直不知...

  • 问题不是问题,怎样看问题才是问题。

    焦点幸福教师 坚持分享第1349天2020.11.17周二 小风波 1.购物 最近布置班级文化,我从网上购...

  • 问题的问题

    “你别总给我说问题、问题,给我提一些建设性的建议行不?” “你咋变成了意见篓子?” 满腔热血地跑到领导面前表功,结...

  • 问题的问题

    “你别总给我说问题、问题,给我提些建设性的建议行不?” “你咋变成了意见篓子?” 满腔热血地跑到领导面前表功,结果...

  • 问题不是问题!?

    创45:3-5 约瑟对他弟兄们说:“我是约瑟,我的父亲还在吗?”他弟兄不能回答,因为在他面前都惊惶。约瑟又对他弟兄...

  • 问题的问题

    问题家庭的问题是:家长本身用着有问题的方法教育孩子,没问题的孩子也变得有问题。 而且更严重的问题是:家长并没有意识...

  • 问题 的问题

    人大部分时间是在矛盾中挣扎着,有时候是心里想的是这样,但是不得不面对现实和道德,而选择了与内心不相符的决定...

网友评论

      本文标题:问题

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