GithubHelp home page GithubHelp logo

Comments (5)

d4vidi avatar d4vidi commented on June 10, 2024

I believe I might have fixed it, could you pull and check again?

from react-native-camera-kit.

maraujop avatar maraujop commented on June 10, 2024

Just hit this problem with version 5.3.1 I don't understand why, but it was compiling correctly until today when it started failing.

/Users/map/repos/mbp/node_modules/react-native-camera-kit/android/src/main/java/com/wix/RNCameraKit/gallery/TapCustomButtonEvent.java:17: error: method init in class Event<T> cannot be applied to given types;
        init(0);
        ^
  required: int,long
  found: int
  reason: actual and formal argument lists differ in length
  where T is a type-variable:
    T extends Event declared in class Event
/Users/map/repos/mbp/node_modules/react-native-camera-kit/android/src/main/java/com/wix/RNCameraKit/gallery/TapImageEvent.java:20: error: method init in class Event<T> cannot be applied to given types;
        init(0);
        ^
  required: int,long
  found: int
  reason: actual and formal argument lists differ in length
  where T is a type-variable:
    T extends Event declared in class Event
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/map/repos/mbp/node_modules/react-native-camera-kit/android/src/main/java/com/wix/RNCameraKit/gallery/GalleryViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
:react-native-camera-kit:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

from react-native-camera-kit.

maraujop avatar maraujop commented on June 10, 2024

Ok, I found out my android/build.gradle was wrong, in my maven repositories. It started compiling again, after fixing it.

from react-native-camera-kit.

bobmulder avatar bobmulder commented on June 10, 2024

@maraujop Can you tell me what you did to fix it? What did the file look like, and what did you doto fix it?

from react-native-camera-kit.

maraujop avatar maraujop commented on June 10, 2024

Sure I added an extra maven url the wrong way. The wrong file was:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
            url "http://whatever.com"
        }
    }
}

The right one is. Note the position of the url whatever.com:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        maven {
            url "http://whatever.com"
        }
    }
}

That's all I had to do. I hope it helps you @bobmulder

from react-native-camera-kit.

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.