小编Tra*_*YBC的帖子

Eclipse中的Javadoc for Android项目因NullPointerException而失败

我正在尝试在Eclipse中为我的Android项目生成javadoc注释,但我不断收到NullPointerException.只有当我尝试为导入Android兼容性库(android.support)的类生成javadoc时才会出现此问题,我已将其作为外部jar附加.我还引用了Android 2.2和几个Library Projects,但这些不会导致这个错误.

Loading source file /home/travisc/Desktop/Android/App/workspace/Restaurant/src/com/yellowbrickcode/restaurant/StartupActivity.java...
Constructing Javadoc information...
StartupActivity.java:3: package android.content does not exist
import android.content.ContentValues;
                      ^
StartupActivity.java:4: package android.content does not exist
import android.content.Intent;
                      ^
StartupActivity.java:5: package android.content does not exist
import android.content.SharedPreferences;
                      ^
StartupActivity.java:6: package android.content.SharedPreferences does not exist
import android.content.SharedPreferences.Editor;
                                        ^
StartupActivity.java:7: package android.os does not exist
import android.os.Bundle;
                 ^
StartupActivity.java:8: package android.preference does not exist
import android.preference.PreferenceManager;
                         ^
StartupActivity.java:10: package android.view does not exist
import android.view.Menu;
                   ^
StartupActivity.java:11: package android.view does not …
Run Code Online (Sandbox Code Playgroud)

eclipse android javadoc android-support-library

19
推荐指数
1
解决办法
1万
查看次数