Issue on build app bundle/apk and rebuild project with customized ODK version project

Hi all. I have an issue in customized ODK Collect version. Month ago I was set a new version (dirty version, no commits) with bug patches for manager to review. Manager write me that is ok and to publish a new version on google play. I commit and push and when try to build app bundle or rebuild, it gives me an bunch of errors.

First one is:

"> Task :collect_app:dataBindingMergeDependencyArtifactsDebug FAILED"

Last one is:

"Gradle sync issues: Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/org/getodk/javarosa/4.2.0-SNAPSHOT/maven-metadata.xml'. Received status code 401 from server: Unauthorized"

We use our customized project since march/april 2023 and never used mapbox. Till now debug in emulators worked, release apk on android device worked, building apk or app bundle worked and publish on play worked.

What I have try till now:

Invalidate cache, repair IDE, chkdsk on my machine, restore machine on point when app was working, tried on ubuntu linux machine same app (import from github in Android Studio for linux), upgrade Android Studio to the latest version (Windows and Ubuntu)

If someone had a same/similar problem or have any idea what could go wrong, please write.

Ok, I resolve this issue but bumped on another.
This issue was solved by changing line
const val javarosa = "org.getodk:javarosa:4.2.0-SNAPSHOT" in dependencies.kt to
const val javarosa = "org.getodk:javarosa:5.0.0-SNAPSHOT"
Look like :javarosa:4.2.0 is not available anymore.

After a clean up some errors that apears after changing javarosa version I compile APK and on running, app crashes after saving geoshape on form. I tried it on emulator too.

I downloaded javarosa 4.2.0.jar from https://repo1.maven.org/maven2/org/getodk/javarosa/4.2.0/

So please again, where to put javarosa 4.2.0.jar and how to set :javarosa:4.2.0 to run from local computer?

(I run Android studio on Windows but have it on Ubuntu Mate too.)

For anyone that have similar problem, just to write that I resolve issue.
According to:
https://github.com/getodk/javarosa
SNAPSHOT's are not production releases. So instead of
const val javarosa = "org.getodk:javarosa:4.2.0-SNAPSHOT" in dependencies.kt
should be written:
const val javarosa = "org.getodk:javarosa:4.2.0" in dependencies.kt
The most newer version of javarosa that works in ODK Collect v2022.3 is 4.3.2

2 Likes