Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7296

"InvalidPackage: Package not included in Android" lint error when running "gradle build" on Android project with Groovy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.4.0, 2.4.1, 2.5.0-beta-1
    • None
    • Android
    • Android, Groovy 2.4, Gradle. Mac OS X 10.10.2 and Debian 7 64-bit machines.

    Description

      This error can be reproduced by:

      1) Create a new project using Android Studio
      2) Add Groovy support as explained in http://docs.groovy-lang.org/docs/next/html/documentation/tools-groovyc.html#section-android
      3) In the project's root directory, run "./gradlew build"

      It eventually fails with a lint error/exception "InvalidPackage: Package not included in Android" (see full error attached). It seems to be related to calls/references the grooid jars are marking to Java APIs which are not included in the Android library.

      Attachments

        1. groovy-android-lint-error.txt
          3 kB
          Hosain Al Ahmad

        Activity

          People

            Unassigned Unassigned
            hosainnet Hosain Al Ahmad
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: