4

I've seen questions with Eclipse Javadoc so far this, this and this but these are specific to Eclipse. But I want it for ANDROID STUDIO. My project has submodules and customview. Below 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;
                   ^
Community
  • 1
  • 1
Prachi
  • 3,584
  • 2
  • 24
  • 39

1 Answers1

15

After reading here I could finally apply the workaround. Make sure you give the path till your android-jar in the "Other command line arguments" field viz:

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

do not forget to add "-bootclasspath".enter image description here

Prachi
  • 3,584
  • 2
  • 24
  • 39