Giter Site home page Giter Site logo

Comments (5)

JakeWharton avatar JakeWharton commented on August 16, 2024 2

RxAndroid is an aar and as a result can only be used in Android projects. That error message indicates that you are in a Java module with the Kotlin JVM plugin applied. You would need to be in a module with the Android library plugin or the Android application plugin applied for RxAndroid to work.

from rxandroid.

hsy719007146 avatar hsy719007146 commented on August 16, 2024

from rxandroid.

JakeWharton avatar JakeWharton commented on August 16, 2024

Paste the full error message please.

from rxandroid.

Beb3r avatar Beb3r commented on August 16, 2024
> Error while evaluating property 'filteredArgumentsMap' of task ':common-java:compileKotlin'
   > Could not resolve all files for configuration ':common-java:compileClasspath'.
      > Could not resolve io.reactivex.rxjava3:rxandroid:3.0.2.
        Required by:
            project :common-java
         > No matching variant of io.reactivex.rxjava3:rxandroid:3.0.2 was found. The consumer was configured to find an API of a library compatible with Java 11, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' but:
             - Variant 'releaseApiPublication' capability io.reactivex.rxjava3:rxandroid:3.0.2 declares an API of a library, 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)
                     - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
             - Variant 'releaseRuntimePublication' capability io.reactivex.rxjava3:rxandroid:3.0.2 declares a runtime of a library, 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)
                     - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')

Didnt see these messages before, guess it has something to do with Java 11 compatibility

from rxandroid.

Beb3r avatar Beb3r commented on August 16, 2024

my plugins:

plugins {
id 'com.android.application' version '7.3.1' apply false
id 'com.android.library' version '7.3.1' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
id 'org.jetbrains.kotlin.jvm' version '1.7.20' apply false
id 'com.google.dagger.hilt.android' version '2.43.2' apply false
id "org.jetbrains.kotlin.kapt" version "1.7.10" apply false
id 'androidx.navigation.safeargs' version '2.5.2' apply false
}

from rxandroid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.