Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-5515

"No Java files found […]" when Activity extending CordovaActivity not in exact package location

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Incomplete
    • 3.2.0
    • None
    • cordova-android
    • None

    Description

      Having the MainActivity extending CordovaActivity in org.example.app.main throws an error: "No Java files found which extend CordovaActivity."

      With 3.1.0 it could still be located e.g. in org.example.app.main

      Workaround: The Activity extending the CordovaActivity must be located in exact the package org.example.app - as specified in <widget id="org.example.app"

      Related to following commit:
      https://apache.googlesource.com/cordova-cli/+/f86273cdf05bde48adc72a1f13d7cc476a17433a%5E2..f86273cdf05bde48adc72a1f13d7cc476a17433a/

      Is this an intended behaviour? At least it wasn't documented anywhere.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mobidev3 Michael Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: