Gradle kann Lottie Implementation nicht finden

setelk

Mitglied
Moin,

ich weiß irgendwie nicht weiter.
Weiß auch gar nicht, ob das der richtige Bereich ist

Bekomme ständig:
Java:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not resolve com.airbnb.android:lottie:6.0.0.
     Required by:
         project :
      > No matching variant of com.airbnb.android:lottie:6.0.0 was found. The consumer was configured to find a library for use during compile-time, compatible with Java 11, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally but:
          - Variant 'releaseVariantReleaseApiPublication' capability com.airbnb.android:lottie:6.0.0 declares a library for use during compile-time, and its dependencies declared externally:
              - Incompatible because this component declares a component, with the library elements 'aar' and the consumer needed a component, preferably in the form of class files
              - Other compatible attributes:
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
                  - Doesn't say anything about its target Java version (required compatibility with Java 11)
          - Variant 'releaseVariantReleaseJavaDocPublication' capability com.airbnb.android:lottie:6.0.0 declares a component for use during runtime, and its dependencies declared externally:
bei der implementation
implementation 'com.airbnb.android:lottie:6.0.0'

Java Version ist korrekt.


Die haben keine Jar Dateien zum, hinzufügen.

Danke im Voraus.
 
Ohne Grade zu kennen scheint das zu meckern, dass irgendwelche weiteren Abhängigkeiten, die du definierst, inkompatibel sind. Zeig am besten mal deine gradle Datei
 
Was für ein Projekt hast du denn? Hast du ein Android Projekt?

Aar sind Android Libraries und da das Projekt diese nicht unterstützt, vermute ich, dass du kein Android Projekt hast.
 
Was für ein Projekt hast du denn? Hast du ein Android Projekt?

Aar sind Android Libraries und da das Projekt diese nicht unterstützt, vermute ich, dass du kein Android Projekt hast.
Hmmmm. Guter Punkt und traurig, dass ich das nicht gesehen hab.
Normales Java Projekt. Also nehme ich an, dass diese IconLibs nur für Android Projekte sind?
 
Hmmmm. Guter Punkt und traurig, dass ich das nicht gesehen hab.
Normales Java Projekt. Also nehme ich an, dass diese IconLibs nur für Android Projekte sind?
Zumindest, was da bereit gestellt wurde. Wenn es unter Apache Lizenz steht (Ich meine, dass hatte ich gesehen), dann kannst Du die Sourcen evtl. auch anderweitig kopieren um diese zu nutzen.
 

Zurück
Oben