Skip to content

Frequent Errors and Solutions

MOHIT GUPTA edited this page May 15, 2023 · 3 revisions

Table of Contents

Dagger Unresolved reference

Error: Unresolved reference DaggerXXTest_TestApplicationComponent

Solution: Don't worry this is not an error. Just run the test file and it will solve the error. For running tests, you can see Oppia Android Testing document.

Crashing layout tags in tablet

Error: java.lang.IllegalArgumentException: The tag for topic_lessons_title is invalid. Received: layout-sw600dp-port/topic_lessons_title_0 Solutions: This error occurs when we remove any xml file which is related to tablet devices To solve this

  1. Uninstall the app from tablet
  2. Rebuild the app.
  3. Run the app again.

Push failed

Error: Failed to push some refs to git@github.com:<your_user_name>/oppia-android.git

Solution: If you are using Android Studio or another UI-based git to push and got the above error, this might not provide many details. Try to push using the command line. Also, we suggest using the command line, as all our scripts, project building, APK building are done using the command line as we are moving towards the Bazel build system and removing the Gradle build system.

If there is an error with any of the lint failures it will be detailed in the command line itself.

Facing error while debugging code

If you are running into an error that you cannot debug, follow the guidelines outlined on this wiki page.

Clone this wiki locally