Auf Thema antworten

Hallo,

ich versuche gerade MongoDB in mein AndroidStudio projekt einzubinden. Eigentlich habe ich alles heruntergeladen und installiert und auch implementiert in build.gradle:

[CODE]implementation 'org.mongodb:mongodb-driver-sync:6.0.4'[/CODE]

Wenn ich jetzt allerdings versuche etwas zu importieren:

[CODE=java]import com.mongodb.client.MongoDatabase;

import com.mongodb.MongoClient;[/CODE]

Wird mir angezeigt, dass MongoDB nicht gefunden wird(Can not resolve Symbol mongodb)


Auch wenn ich das Projekt versuche zu rebuilden kommt folgender Error:

[CODE]Task failed with an exception.

-----------

* What went wrong:

Execution failed for task ':app:desugarDebugFileDependencies'.

> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

   > Could not find org.mongodb:mongodb-driver-sync:6.0.4.

     Searched in the following locations:

       - https://dl.google.com/dl/android/maven2/org/mongodb/mongodb-driver-sync/6.0.4/mongodb-driver-sync-6.0.4.pom

       - https://repo.maven.apache.org/maven2/org/mongodb/mongodb-driver-sync/6.0.4/mongodb-driver-sync-6.0.4.pom

     Required by:

         project :app[/CODE]

Hat jemand eine Idee woran das liegen könnte?

Vielen Dank schon mal : )



Oben