Error

FATAL EXCEPTION: main

Process: com.chaquo.myapplication, PID: 4906

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.chaquo.myapplication/com.chaquo.myapplication.MainActivity}: com.chaquo.python.PyException: InvalidVersion: Invalid version: '0.10.1,<0.11'

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3782)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3922)

at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)

at .packaging.version.parse(version.py:56)

at .transformers.utils.versions.require_version(versions.py:92)

at .transformers.utils.versions.require_version_core(versions.py:101)

at .transformers.dependency_versions_check.(dependency_versions_check.py:41)

at .java.chaquopy.import_override(import.pxi:26)

at .transformers.(__init__.py:43)

at .java.chaquopy.import_override(import.pxi:26)

at .plot.(plot.py:33)

at .importlib._bootstrap._call_with_frames_removed(:219)

at .importlib._bootstrap_external.exec_module(:843)

...

Solution

To fix this issue, you should:

  1. Review the code where this version string is specified and ensure it follows the correct semantic versioning format.
  2. If you are trying to specify a range of compatible versions, make sure to use the proper syntax. For example, if you want to specify that the version must be greater than or equal to 0.10.1 and less than 0.11, you might write it as >=0.10.1,<0.11.
  3. If you are using a build configuration or dependency management tool, ensure that the version constraints are correctly specified in the configuration files.
  4. After making changes, rebuild the application and test it to ensure that the crash no longer occurs.