jodybrewster / react-native-linkedin-login

React Native Linkedin login
71 stars 42 forks source link

cannot find symbol new RNLinkedinLoginPackage() #15

Closed ChrisCates closed 7 years ago

ChrisCates commented 7 years ago
/Users/chriscates/projects/meetf2f/android/app/src/main/java/com/meetf2f/MainApplication.java:7: error: cannot find symbol
import com.linkedin.android.mobilesdk.RNLinkedinLoginPackage;
                                     ^
  symbol:   class RNLinkedinLoginPackage
  location: package com.linkedin.android.mobilesdk
/Users/chriscates/projects/meetf2f/android/app/src/main/java/com/meetf2f/MainApplication.java:31: error: cannot find symbol
            new RNLinkedinLoginPackage(),
                ^
  symbol: class RNLinkedinLoginPackage
/Users/chriscates/projects/meetf2f/android/app/src/main/java/com/meetf2f/MainApplication.java:32: error: cannot find symbol
            new RNLinkedinLoginPackage(this),
                ^
  symbol: class RNLinkedinLoginPackage
3 errors
:app:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Here's the dump of the issues... Any reason why the library won't work?

mlumbroso commented 7 years ago

My import is as followed and works (taken from the documentation, don't know where your imports come from actually...) :

import net.jodybrewster.linkedinlogin.RNLinkedinLoginModule;       
import net.jodybrewster.linkedinlogin.RNLinkedinLoginPackage;
import com.linkedin.platform.LISessionManager;   

and then i call new RNLinkedinLoginPackage(),

ChrisCates commented 7 years ago

Mine came from react native link

I used those imports and it required a parameter???

mlumbroso commented 7 years ago

I guess there is a problem with autolinking then...

What do you mean by it required a parameter?

ChrisCates commented 7 years ago

@mlumbroso It asked for an argument inside the function call.

arisAlexis commented 7 years ago

@ChrisCates

the instructions say you should put these into the MainActivity.java and there is no mention of linking. The thing is that the new version of react doesn't use MainActivity for linking.

https://github.com/jodybrewster/react-native-linkedin-login/issues/9

this is the correct issue

ChrisCates commented 7 years ago

@arisAlexis Thanks, but from needing to do a PR on this... PR on React-Native-Maps and a whole swath of PRs I have to do on the React-Native library.

I've decided to do Java and Swift instead. I'm most likely going to rewrite Jody's library since it'll be easier for me then figuring out what he did (plus I can start off with latest version of React).

ChrisCates commented 7 years ago

Lets be honest here. The last commit was August 16th. He's clearly not taking this project seriously...

arisAlexis commented 7 years ago

@ChrisCates he could keep the code for himself as it is apparent that was used for another project but it is open source and we can't complain

jodybrewster commented 7 years ago

I've made some significant changes to the project and I'm moving it to rnpm here soon so we won't get into this issue, sorry for the delay