com.android.builder.model
Interface SyncIssue


public interface SyncIssue

Class representing a sync issue. The goal is to make these issues not fail the sync but instead report them at the end of a successful sync.


Field Summary
static int SEVERITY_ERROR
           
static int SEVERITY_WARNING
           
static int TYPE_BUILD_TOOLS_TOO_LOW
           
static int TYPE_DEPENDENCY_IS_APK
           
static int TYPE_DEPENDENCY_IS_APKLIB
           
static int TYPE_GENERIC
           
static int TYPE_GRADLE_TOO_OLD
           
static int TYPE_JACK_IS_NOT_SUPPORTED
           
static int TYPE_JACK_REQUIRED_FOR_JAVA_8_LANGUAGE_FEATURES
           
static int TYPE_JAR_DEPEND_ON_AAR
           
static int TYPE_MAX
           
static int TYPE_MISMATCH_DEP
          Mismatch dependency version between tested and test app.
static int TYPE_NON_JAR_LOCAL_DEP
           
static int TYPE_NON_JAR_PACKAGE_DEP
           
static int TYPE_NON_JAR_PROVIDED_DEP
           
static int TYPE_OPTIONAL_LIB_NOT_FOUND
           
static int TYPE_PLUGIN_OBSOLETE
           
static int TYPE_UNRESOLVED_DEPENDENCY
           
 
Method Summary
 java.lang.String getData()
          Returns the data of the issue.
 java.lang.String getMessage()
          Returns the a user-readable message for the issue.
 int getSeverity()
          Returns the severity of the issue.
 int getType()
          Returns the type of the issue.
 

Field Detail

SEVERITY_WARNING

static final int SEVERITY_WARNING
See Also:
Constant Field Values

SEVERITY_ERROR

static final int SEVERITY_ERROR
See Also:
Constant Field Values

TYPE_GENERIC

static final int TYPE_GENERIC
See Also:
Constant Field Values

TYPE_PLUGIN_OBSOLETE

static final int TYPE_PLUGIN_OBSOLETE
See Also:
Constant Field Values

TYPE_UNRESOLVED_DEPENDENCY

static final int TYPE_UNRESOLVED_DEPENDENCY
See Also:
Constant Field Values

TYPE_DEPENDENCY_IS_APK

static final int TYPE_DEPENDENCY_IS_APK
See Also:
Constant Field Values

TYPE_DEPENDENCY_IS_APKLIB

static final int TYPE_DEPENDENCY_IS_APKLIB
See Also:
Constant Field Values

TYPE_NON_JAR_LOCAL_DEP

static final int TYPE_NON_JAR_LOCAL_DEP
See Also:
Constant Field Values

TYPE_NON_JAR_PACKAGE_DEP

static final int TYPE_NON_JAR_PACKAGE_DEP
See Also:
Constant Field Values

TYPE_NON_JAR_PROVIDED_DEP

static final int TYPE_NON_JAR_PROVIDED_DEP
See Also:
Constant Field Values

TYPE_JAR_DEPEND_ON_AAR

static final int TYPE_JAR_DEPEND_ON_AAR
See Also:
Constant Field Values

TYPE_MISMATCH_DEP

static final int TYPE_MISMATCH_DEP
Mismatch dependency version between tested and test app. Data is dep coordinate without the version (groupId:artifactId)

See Also:
Constant Field Values

TYPE_OPTIONAL_LIB_NOT_FOUND

static final int TYPE_OPTIONAL_LIB_NOT_FOUND
See Also:
Constant Field Values

TYPE_JACK_IS_NOT_SUPPORTED

static final int TYPE_JACK_IS_NOT_SUPPORTED
See Also:
Constant Field Values

TYPE_GRADLE_TOO_OLD

static final int TYPE_GRADLE_TOO_OLD
See Also:
Constant Field Values

TYPE_BUILD_TOOLS_TOO_LOW

static final int TYPE_BUILD_TOOLS_TOO_LOW
See Also:
Constant Field Values

TYPE_JACK_REQUIRED_FOR_JAVA_8_LANGUAGE_FEATURES

static final int TYPE_JACK_REQUIRED_FOR_JAVA_8_LANGUAGE_FEATURES
See Also:
Constant Field Values

TYPE_MAX

static final int TYPE_MAX
See Also:
Constant Field Values
Method Detail

getSeverity

int getSeverity()
Returns the severity of the issue.


getType

int getType()
Returns the type of the issue.


getData

@Nullable
java.lang.String getData()
Returns the data of the issue. This is a machine-readable string used by the IDE for known issue types.


getMessage

@NonNull
java.lang.String getMessage()
Returns the a user-readable message for the issue. This is used by IDEs that do not recognize the issue type (ie older IDE released before the type was added to the plugin).