在过去的两天里,我试图通过Maven导入这个库:
https://github.com/JakeWharton/Android-ViewPagerIndicator
我不得不说我是maven的新手,所以如果这很容易解决,请原谅我,我搜索了问题并研究了错误页面,但我找不到解决这个问题的方法.但每次我尝试我都会得到这样的错误:
c:\JakeWharton-Android-ViewPagerIndicator-3db7585>mvn install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
com.viewpagerindicator:library:apklib:2.2.0
[WARNING] 'build.plugins.plugin.version' for com.jayway.maven.plugins.android.ge
neration2:maven-android-plugin is missing. @ line 36, column 12
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
com.viewpagerindicator:sample:apk:2.2.0
[WARNING] 'build.plugins.plugin.version' for com.jayway.maven.plugins.android.ge
neration2:maven-android-plugin is missing. @ line 48, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] …Run Code Online (Sandbox Code Playgroud) 我试图构建atom.io并完成构建脚本没有任何错误.但是当我尝试运行"./grunt install"时,我总是会收到以下错误:
grunt-cli: The grunt command line interface. (v0.1.13)
Fatal error: Unable to find local grunt.
If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:
http://gruntjs.com/getting-started
Run Code Online (Sandbox Code Playgroud)
所以我按照" http://gruntjs.com/getting-started "的建议尝试了以下命令:
sudo npm install grunt --save-dev
Run Code Online (Sandbox Code Playgroud)
这提供了以下输出:
andreas@debian ~/atom.io $ sudo npm install grunt --save-dev
npm http GET https://registry.npmjs.org/grunt
npm http 304 https://registry.npmjs.org/grunt
npm http GET https://registry.npmjs.org/async
npm …Run Code Online (Sandbox Code Playgroud)