react-native
丢失的林夕
来个搞笑的:good good study,day day up
展开
-
react-native配置decorators-legacy支持修饰符
1. 下载依赖yarn add @babel/plugin-proposal-decorators//如果是npm 不推荐使用会导致旧包的丢失// npm install --save-dev @babel/plugin-proposal-decorators2. 配置文件babel.config.js中配置插件module.exports = { presets: ['module:metro-react-native-babel-preset'], plugins: [原创 2020-10-28 15:46:48 · 529 阅读 · 0 评论 -
IO exception while downloading manifest: java.io.IOException: Unable to tunnel through proxy. Proxy
原因你本地gradle配置了下载代理,并且该代理不可用解决办法找到你c盘下的gradle.properties文件注释掉代理配置即可原创 2020-10-28 15:07:43 · 11699 阅读 · 2 评论 -
WARNING: Configuration ‘compile‘ is obsolete and has been replaced with ‘implementation‘ and ‘api‘.
原因compile会被在2018年底取消,会被imlementation替代,所以会报这个警告,解决警告的方式就是换成imlementation就好了解决办法将compile全部换成implementation即可原创 2020-10-28 14:47:36 · 3424 阅读 · 0 评论 -
react-native Android需要特殊处理Gif加载
在android/app/build.gradle中需要添加以下内容dependencies { // If your app supports Android versions before Ice Cream Sandwich (API level 14) compile 'com.facebook.fresco:animated-base-support:0.11.0' // For animated GIF support compile 'com.facebook.fresco原创 2020-10-27 15:45:40 · 2034 阅读 · 0 评论 -
React-Native Android安装成功运行不进App的问题
错误信息Starting the app (/home/xxx/soft/sdk//platform-tools/adb shell am start -n xxx/.MainActivity)…Starting: Intent { cmp=xxx/.MainActivity }Error type 3Error: Activity class {xxx/xxx.MainActivity} does not exist.尽管该应用可以安装到你的安卓设备, 不影响使用,但是看着好碍眼。本着不能规避原创 2020-10-27 13:43:03 · 1395 阅读 · 0 评论 -
“adb”不是内部或外部命令,也不是可运行的程序或批处理文件(Win)
原因环境变量没配置adb.exe文件得路径,系统找不到改程序解决办法android 2.2以后,adb.exe是放在SDK的platform-tools目录下面的,复制当前目录,填入环境变量中然后完美解决原创 2020-10-27 13:38:24 · 367 阅读 · 0 评论