
react-native错误积累
smxueer
这个作者很懒,什么都没留下…
展开
-
错误: 找不到或无法加载主类 org.gradle.wrapper.GradleWrapperMain Could not install the app on the device,
上周还能正常跑的项目,今天打开运行竟然出现这个的问题:根据提示,是找不到某个类或者没办法加载相关的类,经过查找是由于Android目录下gradle-wrapper.jar这个文件的大小为0,如下:删除该文件,重新生成运行便可。 ...原创 2018-11-26 12:41:47 · 3169 阅读 · 0 评论 -
react-native Unresolved function or method require()
最近刚开始研究react-native,费拉九牛二虎之力,装好环境,这几天再用image 这个组件加载本地图片时,遇到今天这个问题,解决办法记录下。 出现以上问题,时新装的环境,没有自带相应的有关require的nodejs的框架,我们需要设置中找Node.js and NPM项勾选Coding assistance for node.js即可。如下:...原创 2018-11-12 16:01:23 · 847 阅读 · 0 评论 -
reactnative 项目使用androidstudio打开出现的问题Gradle sync failed: Could not find com.android.tools:common:25.2
近期刚开始学习reactnative不久,从公司git上下载项目,在androidstudio上打开运行项目,出现以下的问题:16:26 Gradle sync failed: Could not find com.android.tools:common:25.2.3. project :react-native-svg > com.android.tools.build...原创 2018-12-09 17:15:46 · 1979 阅读 · 0 评论