logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

flutter出现的错误-Some Android licenses not accepted. To resolve this, run: flutter doctor --android-lic

运行上述命令后,你会看到一系列的Android许可证。按下空格键以查看更多许可证,然后输入"y"来接受每个许可证。完成后,你应该能够成功接受所有许可证。完成后,重新运行Flutter项目,应该就不会再出现"Some Android licenses not accepted"的错误了。然后,你将会被要求逐个接受每个许可证。输入"y"来接受每个许可证,直到所有许可证都被接受为止。如果上述命令不起作用

文章图片
#flutter#android
处理uniapp刷新后,点击返回按钮跳转到登录页的问题

在使用uniapp的原生返回的按钮时,如果没有刷新会正常返回到对应的页面,如果刷新后会在当前页反复横跳,或者跳转到登录页。那个时候我第一个想法时:使用浏览器的history.back()方法。因为浏览器刷新后还是可以通过右上角的返回按钮进行返回的。然后我通过uniapp的addInterceptor或者onBackPress进行劫持点击返回时的事件。可惜经过刷新后的后退按钮完全没有调用这两个回调。

文章图片
#uni-app
使用HbuilderX运行uniapp中小程序项目

在HbuilderX中运行uni-app到微信小程序到微信开发者工具中去。

文章图片
#uni-app
在uniapp中为自定义组件绑定点击事件点击后没有效果

在uniapp中为自定义组件绑定点击事件点击后没有效果

文章图片
#uni-app
运行flutter doctor命令窗口直接闪退

报错信息的意思是git的文件夹不能删掉,请保留flutter中git文件。在cmd中输入flutter doctor后闪退了。使用高速摄像机可以看到报错信息。

文章图片
#flutter
react-native和原生android的交互

在react-native中加入getConstants,在CalendarModule.getConstant的方法写出。

文章图片
#android#react native
react-native-gesture-handler 手势的使用

6、接下来,你可以在你的React Native组件中使用react-native-gesture-handler提供的手势组件了。1、首先,在你的React Native项目中安装react-native-gesture-handler。以上是使用react-native-gesture-handler的基本步骤。2、安装完成后,需要链接react-native-gesture-handler到

#react native
react-spring,一个react的动画库的使用

React Spring 是一个 spring physics based animation library 用于 React。它可以轻松地在 React 中实现弹性、渐变等动画效果。

文章图片
#react.js#前端#javascript
react出现了Invalid hook call. Hooks can only be called inside of the body of a function component.

/ Hook 只能在函数组件的最顶层使用 function Example() { if (someCondition) { const [count, setCount] = useState(0);在普通的 JavaScript 函数中使用 Hook 在 class 组件中使用 Hook 在自定义 Hook 内部再调用 Hook 在条件判断或循环中使用 Hook。这是因为你在函数组件以外使用了

文章图片
#react.js#javascript#前端
    共 29 条
  • 1
  • 2
  • 3
  • 请选择