Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SDK6UserGuide/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ the :ref:`Central <central_repository>` and :ref:`Developer <developer_repositor
There are several ways to declare repositories.
To get started, you can declare them globally to make them available in all your projects:

- Create the folder ``$USER_HOME/.gradle/init.d`` if it does not exist.
- Create the folder ``<USER_HOME>/.gradle/init.d`` if it does not exist.
- Download and copy :download:`this file <resources/microej.init.gradle.kts>` in the previously created folder.

At this stage, you can already build a project from the command line,
Expand All @@ -81,7 +81,7 @@ SDK EULA Acceptation
The use of MICROEJ SDK 6 requires to accept the :ref:`sdk6_eula`.

The acceptance can be done at the project level or system-wide. For a system-wide acceptance, we recommend to define
the ``accept-microej-sdk-eula-v3-1c`` system property in a ``gradle.properties`` file in your Gradle User Home folder ``$USER_HOME/.gradle/gradle.properties``:
the ``accept-microej-sdk-eula-v3-1c`` system property in a ``gradle.properties`` file in your Gradle User Home folder ``<USER_HOME>/.gradle/gradle.properties``:

.. code:: properties

Expand Down
52 changes: 47 additions & 5 deletions SDK6UserGuide/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,57 @@ The solution is to use a JDK 11 or a higher LTS version (``11``, ``17`` or ``21`
Project JDK in IntelliJ IDEA and Android Studio


Unresolved Dependency
---------------------
Unresolved Dependency When No Repository
----------------------------------------

If this kind of message appears when resolving plugins or modules dependencies:

.. code:: console

* What went wrong:
Plugin [id: 'com.microej.gradle.application', version: '1.3.1'] was not found in any of the following sources:
* What went wrong:
Plugin [id: 'com.microej.gradle.application', version: '1.3.1'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (No included builds contain this plugin)
- Plugin Repositories (could not resolve plugin artifact 'com.microej.gradle.application:com.microej.gradle.application.gradle.plugin:1.1.0')
Searched in the following repositories:
Gradle Central Plugin Repository

or this kind:

.. code:: console

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Cannot resolve external dependency ej.api:edc:1.3.7 because no repositories are defined.
Required by:
root project :

It means that no module or plugin repository has been defined.
Make sure that the repositories have been configured as described in the :ref:`sdk_6_configure_repositories` section.
In particular, make sure that the Gradle Init script is in the ``.gradle/init.d`` folder in the Gradle User Home folder.
The Gradle User Home folder is defined by default to the OS User Home folder,
and can be changed by setting the ``GRADLE_USER_HOME`` environment variable
or in the IDE settings (see `Intellij IDEA documentation <https://www.jetbrains.com/help/idea/gradle-settings.html>`__).

Unresolved Dependency in Repositories
-------------------------------------

If this kind of message appears when resolving plugins or modules dependencies:

.. code:: console

* What went wrong:
Plugin [id: 'com.microej.gradle.application', version: '1.3.1'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (No included builds contain this plugin)
- Plugin Repositories (could not resolve plugin artifact 'com.microej.gradle.application:com.microej.gradle.application.gradle.plugin:1.3.1')
Searched in the following repositories:
microEJCentral(https://repository.microej.com/modules)
microEJForgeCentral(https://forge.microej.com/artifactory/microej-central-repository-release)
microEJForgeDeveloper(https://forge.microej.com/artifactory/microej-developer-repository-release)

or this kind:

Expand All @@ -91,7 +133,7 @@ or this kind:
project :


First, check that either the requested plugin or module exists in your repository.
First, check that either the requested plugin or module exists in the listed repositories.

- If the plugin or module does not exist,

Expand Down