weex社区Weex开发技巧Weex开发

Weex开发之开发过程遇到的问题以及解决方案(三)

2018-06-07  本文已影响131人  AR7_

问题1:

图中说出现的问题是因为Android SDK路径不正确。

解决方案:

问题2:

如图所示,报出很多错误,主要原因是因为使用了语法检查eslint,这个主要是用来规范代码,而且很严格,哪怕是多一个空格都会报错。

解决方案:

const createLintingRule = () => ({
  //将下面这些代码注释掉即可。

  // test: /\.(js|vue)$/,
  // loader: 'eslint-loader',
  // enforce: 'pre',
  // include: [helper.rootNode('src'), helper.rootNode('test')],
  // options: {
  //   formatter: require('eslint-friendly-formatter'),
  //   emitWarning: !config.dev.showEslintErrorsInOverlay
  // }
})

问题3:

问题4:

问题5:

Custom elements in iteration require 'v-bind:key' directives

问题6:

问题7:

解决方案:个人怀疑是nodejs出了问题,卸载重装还是不行。https://blog.csdn.net/li396864285/article/details/52572163

问题8:

解决方案:清理代理未成功,只要找到该文件,删除掉即可。

问题9:

问题10:

Error:Failed to open zip file. 
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
Re-download dependencies and sync project (requires network)
解决方案:
  services.gradle.org/distributions/gradle-2.14.1-all.zip

问题11:

.toolbar-leftimage-warpper {
    position: absolute;
    left: 0px;
    top: 0px;
    justify-content: center;
    height: 100px;
}

问题12:

Environment variable $ANDROID_HOME not found !
解决方案:

https://blog.csdn.net/k491022087/article/details/72934862

问题13:

Error: Error: Command failed: ./gradlew  assembleDebug
/bin/sh: ./gradlew: Permission denied

问题14:

npm WARN invalid config https-proxy=""
npm WARN invalid config Must be a full url with 'http://'

问题15:

 [Gradle sync failed: Cause: error=2, No such file or directory](https://stackoverflow.com/questions/47018879/gradle-sync-failed-cause-error-2-no-such-file-or-directory)

https://stackoverflow.com/questions/47018879/gradle-sync-failed-cause-error-2-no-such-file-or-directory

wenti16:


This is not a bug in npm.
Tell the package author to fix their package.json file. JSON.parse

https://stackoverflow.com/questions/31454607/npm-failed-to-parse-json

上一篇下一篇

猜你喜欢

热点阅读