digidem / mapeo-mobile

Monitor and document the world around you
GNU General Public License v3.0
95 stars 16 forks source link

Maven not found error #1109

Closed arky closed 10 months ago

arky commented 11 months ago

Building mapeo-mobile with node 12 and Gradle v7 results in 'maven' not found error. The maven plugin has replaced by 'maven-publish' in Gradle 7

* What went wrong:
A problem occurred evaluating project ':expo-barcode-scanner'.
> Plugin with id 'maven' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':expo-barcode-scanner'.
> com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
arky commented 11 months ago

This issue has been caused inadvertently by Android studio upgrading the project to Gradle 7. Running './gradlew' on command line to revert the gradle version and also adding some documentation to resolve this issue.

arky commented 10 months ago

Closing this for now. Shall add a note to documentation.