question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with linking

See original GitHub issue

I had to manually link it to <appRoot>MainApplication.java

import com.apsl.versionnumber.RNVersionNumberPackage;  <-- add this
@Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
	  new RNVersionNumberPackage(),  <-- add this
          new MainReactPackage()
      );
    }
`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

3reactions
Azmeer-crescentcommented, Feb 9, 2018

What I meant was, the normal react-native link did link the settings.gradle and build.gradle properly, but it DID NOT process the MainApplication.java for some reason.

0reactions
EleeMosinarYcommented, Sep 23, 2019

Just did yarn install react-native-version-number then react-native link react-native-version-number and it worked flawlessly:

rnpm-install info Linking react-native-version-number ios dependency 
rnpm-install info Platform 'ios' module react-native-version-number has been successfully linked 
rnpm-install info Linking react-native-version-number android dependency 
rnpm-install info Platform 'android' module react-native-version-number has been successfully linked

Did same thing still getting undefined in build number and all 3 in ios

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error with linking accounts - Microsoft Q&A
I get an error when i try to link a work account to my personal microsoft acocunt ... Linking Microsoft accounts is no...
Read more >
Error Link - Apollo GraphQL Docs
An error is passed as a networkError if a link further down the chain called the error callback on the observable. In most...
Read more >
Linking error vs. compilation error - c++ - Stack Overflow
For a function during compile time you can have multiple definitions but confusion arises only during linking so it complains during linking.
Read more >
Troubleshoot common Firebase linking errors - Google Help
Expand the sections below to learn more about the errors you may encounter when linking your AdMob app(s) to Firebase. Expand all Collaps....
Read more >
"Account Linking Failed" - Bethesda.net Error FIX - YouTube
"Account linking failed. Please retry or contact Customer Support for assistance."1. After Logging Into bethesda.net Go ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found