Bigkoo / Android-PickerView

This is a picker view for android , support linkage effect, timepicker and optionspicker.(时间选择器、省市区三级联动)
Apache License 2.0
13.44k stars 3.45k forks source link

问下控件开发环境是什么样的 #16

Closed xuhuan closed 9 years ago

xuhuan commented 9 years ago

下面3个任务通不过 image 错误提示如下

下午3:41:11: Executing external task 'javadoc'...
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelOptions.java:7: 错误: 找不到符号
import com.bigkoo.pickerview.R;
                            ^
  符号:   类 R
  位置: 程序包 com.bigkoo.pickerview
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelView.java:25: 错误: 找不到符号
import com.bigkoo.pickerview.R;
                            ^
  符号:   类 R
  位置: 程序包 com.bigkoo.pickerview
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelTime.java:8: 错误: 找不到符号
import com.bigkoo.pickerview.R;
                            ^
  符号:   类 R
  位置: 程序包 com.bigkoo.pickerview
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/DensityUtil.java:11: 警告: context没有 @param
    public static int dip2px(Context context, float dpValue) {
                      ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/DensityUtil.java:11: 警告: dpValue没有 @param
    public static int dip2px(Context context, float dpValue) {
                      ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/DensityUtil.java:11: 警告: 没有 @return
    public static int dip2px(Context context, float dpValue) {
                      ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/DensityUtil.java:20: 警告: context没有 @param
    public static int px2dip(Context context, float pxValue) {
                      ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/DensityUtil.java:20: 警告: pxValue没有 @param
    public static int px2dip(Context context, float pxValue) {
                      ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/DensityUtil.java:20: 警告: 没有 @return
    public static int px2dip(Context context, float pxValue) {
                      ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/OnWheelChangedListener.java:6: 错误: 此处不允许使用标记: <li>
 * <li> New Wheel position is set
   ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/OnWheelChangedListener.java:7: 错误: 此处不允许使用标记: <li>
 * <li> Wheel view is scrolled
   ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelOptions.java:124: 警告: @param 没有说明
     * @param label1
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelOptions.java:125: 警告: @param 没有说明
     * @param label2
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelOptions.java:126: 警告: @param 没有说明
     * @param label3
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelOptions.java:140: 警告: @param 没有说明
     * @param cyclic
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelOptions.java:151: 警告: @return 没有说明
     * @return
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelTime.java:69: 错误: 未知标记: Description
     * @Description: TODO 弹出日期时间选择器
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelTime.java:71: 警告: year没有 @param
    public void setPicker(int year ,int month ,int day,int h,int m) {
                ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelTime.java:71: 警告: month没有 @param
    public void setPicker(int year ,int month ,int day,int h,int m) {
                ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelTime.java:71: 警告: day没有 @param
    public void setPicker(int year ,int month ,int day,int h,int m) {
                ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelTime.java:71: 警告: h没有 @param
    public void setPicker(int year ,int month ,int day,int h,int m) {
                ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelTime.java:71: 警告: m没有 @param
    public void setPicker(int year ,int month ,int day,int h,int m) {
                ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelTime.java:223: 警告: @param 没有说明
     * @param cyclic
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelView.java:161: 警告: context没有 @param
    public WheelView(Context context) {
           ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelView.java:153: 警告: context没有 @param
    public WheelView(Context context, AttributeSet attrs) {
           ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelView.java:153: 警告: attrs没有 @param
    public WheelView(Context context, AttributeSet attrs) {
           ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelView.java:145: 警告: context没有 @param
    public WheelView(Context context, AttributeSet attrs, int defStyle) {
           ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelView.java:145: 警告: attrs没有 @param
    public WheelView(Context context, AttributeSet attrs, int defStyle) {
           ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelView.java:145: 警告: defStyle没有 @param
    public WheelView(Context context, AttributeSet attrs, int defStyle) {
           ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/OptionsPopupWindow.java:74: 警告: @param 没有说明
     * @param option1
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/OptionsPopupWindow.java:81: 警告: @param 没有说明
     * @param option1
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/OptionsPopupWindow.java:82: 警告: @param 没有说明
     * @param option2
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/OptionsPopupWindow.java:89: 警告: @param 没有说明
     * @param option1
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/OptionsPopupWindow.java:90: 警告: @param 没有说明
     * @param option2
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/OptionsPopupWindow.java:91: 警告: @param 没有说明
     * @param option3
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/OptionsPopupWindow.java:98: 警告: @param 没有说明
     * @param label1
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/OptionsPopupWindow.java:105: 警告: @param 没有说明
     * @param label1
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/OptionsPopupWindow.java:106: 警告: @param 没有说明
     * @param label2
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/OptionsPopupWindow.java:113: 警告: @param 没有说明
     * @param label1
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/OptionsPopupWindow.java:114: 警告: @param 没有说明
     * @param label2
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/OptionsPopupWindow.java:115: 警告: @param 没有说明
     * @param label3
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/OptionsPopupWindow.java:122: 警告: @param 没有说明
     * @param cyclic
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/TimePopupWindow.java:77: 警告: @param 没有说明
     * @param START_YEAR
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/TimePopupWindow.java:78: 警告: @param 没有说明
     * @param END_YEAR
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/TimePopupWindow.java:87: 警告: @param 没有说明
     * @param date
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/TimePopupWindow.java:106: 警告: @param 没有说明
     * @param parent
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/TimePopupWindow.java:107: 警告: @param 没有说明
     * @param gravity
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/TimePopupWindow.java:108: 警告: @param 没有说明
     * @param x
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/TimePopupWindow.java:109: 警告: @param 没有说明
     * @param y
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/TimePopupWindow.java:110: 警告: @param 没有说明
     * @param date
       ^
/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/TimePopupWindow.java:131: 警告: @param 没有说明
     * @param cyclic
       ^
:pickerview:javadoc
3 个错误
48 个警告
:pickerview:javadoc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':pickerview:javadoc'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/build/tmp/javadoc/javadoc.options'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.445 secs
Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/bin/javadoc'' finished with non-zero exit value 1
下午3:41:19: External task execution finished 'javadoc'.
saiwu-bigkoo commented 9 years ago

/Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelOptions.java:7: 错误: 找不到符号 import com.bigkoo.pickerview.R; ^ 符号: 类 R 位置: 程序包 com.bigkoo.pickerview /Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelView.java:25: 错误: 找不到符号 import com.bigkoo.pickerview.R; ^ 符号: 类 R 位置: 程序包 com.bigkoo.pickerview /Users/xuhuan/AndroidStudioProjects/Android-PickerView-master/pickerview/src/main/java/com/bigkoo/pickerview/lib/WheelTime.java:8: 错误: 找不到符号 import com.bigkoo.pickerview.R; ^

目测资源问题,R文件问题

xuhuan commented 9 years ago

这个是直接网上源码下载然后解压直接导入android studio里面后直接执行的结果,clean了也不行。

saiwu-bigkoo commented 9 years ago

我的环境是 OS X10.10,java version "1.7.0_71",Android studio1.0。看提示是R文件没有生成的问题,你排查下资源文件有没有出错

xuhuan commented 9 years ago

R文件生成成功的,点击R能点击跳到R文件上。 环境 osx 10.10.2 java 1.8.0_60 android studio 1.4

xuhuan commented 9 years ago

报错发生在javadoc这个上面,这个报错导致执行失败,提示失败也是javadoc过程提示R文件不存在。实际上文件是生成成功的。

saiwu-bigkoo commented 9 years ago

你试试换1.7版本

xuhuan commented 9 years ago

我先升级到最新版的jdk看下,不行再降级看下。

xuhuan commented 9 years ago

升级到1.8.0_66就不报任何错误了,踩到jdk的坑了看来。不过貌似要先切换到1.7.0_75,不切换还是报错,切换了之后再切换回来就不报错了。