Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug收集 #20

Open
duheng opened this issue Nov 27, 2018 · 11 comments
Open

bug收集 #20

duheng opened this issue Nov 27, 2018 · 11 comments

Comments

@duheng
Copy link
Owner

duheng commented Nov 27, 2018

大家在使用的过程中如果遇到问题可以在这里反馈

@ief820
Copy link

ief820 commented Nov 29, 2018

运行apk,没有图片出来,不能滑动。不能像展示的那样显示好多图片能滑动。 代码是pull master 最新的。是怎么回事呢 @duheng

@duheng
Copy link
Owner Author

duheng commented Nov 29, 2018

运行apk,没有图片出来,不能滑动。不能像展示的那样显示好多图片能滑动。 代码是pull master 最新的。是怎么回事呢 @duheng

这个我只是做个demo,用于展示功能,接口是网上爬别人家的接口不是我自己的。数据少的时候就只有几条。 我图上展示的那个是我在之前公司的时候调用的公司成型的API接口,比较稳定,所以出来的效果也比较好

@tumoxuese
Copy link

你好,我想问一下安卓用android studio打开直接报这个错 :ERROR: The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.

image

@duheng
Copy link
Owner Author

duheng commented Aug 2, 2019

你好,我想问一下安卓用android studio打开直接报这个错 :ERROR: The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.

image

1.开启安卓模拟器;
2.在终端执行adb devices验证是否连上了模拟器
3.在终端执行yarn run android

下图是我刚刚跑出来的结果,是正常的。在android studio启动经常会提示你升级sdk,可以不用理会。rn项目不建议用android studio启动。
image

@wenxiayili
Copy link

can not find iphone x, 但是我的iphone x模拟器开着呢?这是咋回事?
我的xnode版本是11.2(beta), 作者能否提供下您的xnode版本?

@duheng
Copy link
Owner Author

duheng commented Oct 18, 2019

can not find iphone x, 但是我的iphone x模拟器开着呢?这是咋回事?
我的xnode版本是11.2(beta), 作者能否提供下您的xnode版本?

一:执行 open /node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js
二:替换 if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {

if (
!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS') &&
!version.startsWith('com.apple.CoreSimulator.SimRuntime.tvOS')
) {

三:全局搜索 simulator.isAvailable !== 'YES' 替换为 simulator.isAvailable !== true
四:重新执行yarn run ios

@duheng
Copy link
Owner Author

duheng commented Oct 18, 2019

can not find iphone x, 但是我的iphone x模拟器开着呢?这是咋回事?
我的xnode版本是11.2(beta), 作者能否提供下您的xnode版本?

一:执行 open /node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js
二:替换 if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {

if (
!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS') &&
!version.startsWith('com.apple.CoreSimulator.SimRuntime.tvOS')
) {

三:全局搜索 simulator.isAvailable !== 'YES' 替换为 simulator.isAvailable !== true
四:重新执行yarn run ios

#23

@wenxiayili
Copy link

can not find iphone x, 但是我的iphone x模拟器开着呢?这是咋回事?
我的xnode版本是11.2(beta), 作者能否提供下您的xnode版本?

一:执行 open /node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js
二:替换 if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {

if (
!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS') &&
!version.startsWith('com.apple.CoreSimulator.SimRuntime.tvOS')
) {
三:全局搜索 simulator.isAvailable !== 'YES' 替换为 simulator.isAvailable !== true
四:重新执行yarn run ios

#23

已解决 谢谢!

@wenxiayili
Copy link

报module找不到:
error info :
bundling failed: Error: Unable to resolve module ../../../../src/components from /Users/liyunhua/Documents/work/react-native/ReactNamtiApp/src/auth/LogIn.js: The module ../../../../src/components could not be found from /Users/liyunhua/Documents/work/react-native/ReactNamtiApp/src/auth/LogIn.js. Indeed, none of these files exist:

  • /Users/liyunhua/Documents/work/src/components(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)

code:
login.js:
import { Toast, Loading, Icon, } from 'components';
import { hexMD5, } from 'commons/utils';
import BaseSelector from 'selectors/base';
import * as BaseActions from 'actions/base';
import connect from 'store/connect';

@wenxiayili
Copy link

1、上述问题已解决,是由于没有babel-plugin-root-import导致的。

@duheng
Copy link
Owner Author

duheng commented Nov 9, 2019

babel-plugin-root-import

谢谢你的反馈,已更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants