Android studio cannot read the package when generating Javadoc

So far, I have seen the problems of eclipse Javadoc in this, this and this, but these problems only apply to eclipse. But I want it to be used for Android studio. My project has sub modules and custom views. The following is the error:

BootStarp1\Base-App\src\main\java\com\rspllib\android\utils\FileUpload\Custommultipartentity.java:3: error: package android.util does not exist
import android.util.Log;
                   ^
D:\MonkeyTalk\MonkeyStudioWorkspace\BootStarp1\Base-App\src\main\java\com\rspllib\android\utils\FileUpload\Custommultipartentity.java:18: error: cannot access httpentity
public class Custommultipartentity extends multipartentity
       ^
         class file for org.apache.http.httpentity not found
         D:\MonkeyTalk\MonkeyStudioWorkspace\BootStarp1\Base-            App\src\main\java\com\rspllib\android\utils\FileUpload\FileUploading.java:3: error: package android.util does not exist
import android.util.Log;
                   ^

resolvent:

After reading here, I can finally apply the solution. Make sure to give the path in the "other command line parameters" field until your Android jar:

    -bootclasspath D:\android-studio-.3.2\sdk\platforms\android-19\android.jar

Don't forget to add "- bootclasspath"

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>