Troubleshooting
Problem
When you work in Android Studio 1.1.0, the build.gradle project does not successfully compile the Mobile Quality Assurance SDK.
Symptom
In the manifest (AndroidManifest.xml) file, if you hover over the application activities for Mobile Quality Assurance, the Cannot resolve symbol error message displays for each subpackage of com.
For example, the error message Cannot resolve symbol ‘ibm’ displays if you hover over the ibm subpackage of the following application activity:
<activity android:name="com.ibm.mqa.ui.ProblemActivity"/>
Java import statements for Mobile Quality Assurance display the same error.
For example, adding import com.ibm.mqa.MQA to the Activity class causes the Cannot resolve symbol ‘ibm’ error message.
Cause
If the SDK is not compiled, then Mobile Quality Assurance module dependencies for the application are not located.
The failure to locate dependencies causes errors such as "Cannot resolve symbol" to display in the AndroidManifest.xml application activities and the Java import statements for Mobile Quality Assurance.
Environment
Android Studio 1.1.0
Resolving The Problem
WORKAROUND:
To circumvent the problem, change the version of the com.android.tools.build:gradle classpath entry from version 1.1.0 to 1.0.1.
To modify the classpath, complete the following steps:
- Expand the Gradle Scripts entry in the Android Project view.
- Open the Project build.gradle file.
- Locate the following classpath entry
com.android.tools.build:gradle:1.1.0.
- Modify the classpath entry version from 1.1.0 to 1.0.1.
You now have the following classpath entry: com.android.tools.build:gradle:1.0.1.
- Sync the project by clicking Sync Now (in the top right corner of the editor)
When the synchronization completes, the packages resolve.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21698768