Git Product home page Git Product logo

Comments (15)

hugoh59 avatar hugoh59 commented on May 30, 2024 3

This solution did not work for me, still getting same error.

from tipsi-stripe.

Nepherhotep avatar Nepherhotep commented on May 30, 2024 1

Thanks @dinesh8055, as far as I see, the most important part of the fail log is here:

C:\Users\gmoni\projects\stripe\node_modules\tipsi-stripe\android\src\main\java\com\gettipsi\stripe\StripeModule.java:13: error: cannot find symbol
import com.facebook.react.bridge.BaseActivityEventListener;
^
symbol: class BaseActivityEventListener
location: package com.facebook.react.bridge
C:\Users\gmoni\projects\stripe\node_modules\tipsi-stripe\android\src\main\java\com\gettipsi\stripe\CreditCardFormOnChangeEvent.java:18: error: no suitable constructor found for Event(int)
super(id);
^
constructor Event.Event() is not applicable
(actual and formal argument lists differ in length)
constructor Event.Event(int,long) is not applicable
(actual and formal argument lists differ in length)
C:\Users\gmoni\projects\stripe\node_modules\tipsi-stripe\android\src\main\java\com\gettipsi\stripe\StripeModule.java:77: error: cannot find symbol
private final ActivityEventListener mActivityEventListener = new BaseActivityEventListener() {
^
symbol: class BaseActivityEventListener
location: class StripeModule
3 errors
:tipsi-stripe:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':tipsi-stripe:compileReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --info or --debug option to get more log output.

@paynd can you please take a look what can be wrong?

@dinesh8055, by the way, is Stripe working for you for iOS?

from tipsi-stripe.

itsmepetrov avatar itsmepetrov commented on May 30, 2024

@paynd please take a look

from tipsi-stripe.

Nepherhotep avatar Nepherhotep commented on May 30, 2024

Hey @dinesh8055, is it full stacktrace? If not, please insert it as file (link).
Thanks

from tipsi-stripe.

isnifer avatar isnifer commented on May 30, 2024

@dinesh8055 did you try:

cd android && ./gradlew clean

before build?

from tipsi-stripe.

dinesh8055 avatar dinesh8055 commented on May 30, 2024

@Nepherhotep Here is the entire stack trace - stacktrace.txt

@isnifer Yes, I had tried that. Still gives me the same error

from tipsi-stripe.

dinesh8055 avatar dinesh8055 commented on May 30, 2024

@Nepherhotep No, I haven't tried for iOS. I don't have xcode

from tipsi-stripe.

isnifer avatar isnifer commented on May 30, 2024

@dinesh8055 is there any changes? Can I close the issue?

from tipsi-stripe.

dinesh8055 avatar dinesh8055 commented on May 30, 2024

@isnifer This issue is only on windows. It works perfectly fine on linux machine. I am closing it for now

from tipsi-stripe.

isnifer avatar isnifer commented on May 30, 2024

@dinesh8055 ok, fine

from tipsi-stripe.

wapt49 avatar wapt49 commented on May 30, 2024

Hi,

I got the same problem. I am using windows as my environment and currently can only test for android. I got error below. Any help?

C:\ITM\ak-localvirtualstore\node_modules\tipsi-stripe\android\src\main\java\com\gettipsi\stripe\StripeModule.java:13: error: cannot find symbol import com.facebook.react.bridge.BaseActivityEventListener; ^ symbol: class BaseActivityEventListener location: package com.facebook.react.bridge C:\ITM\ak-localvirtualstore\node_modules\tipsi-stripe\android\src\main\java\com\gettipsi\stripe\CreditCardFormOnChangeEvent.java:18: error: no suitable construct or found for Event(int) super(id); ^ constructor Event.Event() is not applicable (actual and formal argument lists differ in length) constructor Event.Event(int,long) is not applicable (actual and formal argument lists differ in length) C:\ITM\ak-localvirtualstore\node_modules\tipsi-stripe\android\src\main\java\com\gettipsi\stripe\StripeModule.java:77: error: cannot find symbol private final ActivityEventListener mActivityEventListener = new BaseActivityEventListener() { ^ symbol: class BaseActivityEventListener location: class StripeModule 3 errors :tipsi-stripe:compileReleaseJavaWithJavac FAILED

from tipsi-stripe.

isnifer avatar isnifer commented on May 30, 2024

Hi, @wapt49 please, ensure that android/build.gradle has next lines:

maven {
    // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
    url "$rootDir/../node_modules/react-native/android"
}

Also run ./gradlew clean inside the android/ directory and then build again.

from tipsi-stripe.

wapt49 avatar wapt49 commented on May 30, 2024

@isnifer

It's work. Many thanks :)

from tipsi-stripe.

isnifer avatar isnifer commented on May 30, 2024

@wapt49 nice to hear. I would recommend you add this step (clean) into your build process

from tipsi-stripe.

sandhuwebplanet avatar sandhuwebplanet commented on May 30, 2024

Do
rm -rm package-lock.json
rm -rm yarn-lock.js (if contains)
rm -rm node_modules

Then
yarn install or npm install
cd android/
./gradlew clean

and try build again

from tipsi-stripe.

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.