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: cannot find symbol import org.opencv.DocumentScannerPackage

See original GitHub issue

Screen Shot 2019-06-17 at 3 55 04 PM

This is my package.json file

{
  "name": "TestApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.6.3",
    "react-native": "0.57.8",
    "react-native-document-scanner": "git+https://github.com/Michaelvilleneuve/react-native-document-scanner.git#android"
  },
  "devDependencies": {
    "babel-jest": "24.8.0",
    "jest": "24.8.0",
    "metro-react-native-babel-preset": "0.54.1",
    "react-test-renderer": "16.6.3"
  },
  "jest": {
    "preset": "react-native"
  }
}

Was struggling for past 2 days… unable to get any solutions… I just installed using android branch and trying it in android mobile.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:18 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
Michaelvilleneuvecommented, Jun 17, 2019

The automatic linking seems to have failed retrieving the package name. The import line should look like this :

import com.documentscanner.DocumentScannerPackage

3reactions
weinixuehaocommented, Feb 29, 2020

It is work to add react-native.config.js with below image content in this project root dir! I have tested it

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - error: cannot find symbol import org.opencv ...
i have imported import com.documentscanner.DocumentScannerPackage in my myapplication file. but when i try to build project in
Read more >
opencv - Cannot resolve symbol error when importing ...
I faced the same issue while configuring OpenCV SDK with Android Studio. I am using the latest SDK build of OpenCV : OpenCV-3.1.0-android-sdk....
Read more >
cannot find symbol in compiling edit - OpenCV Q&A Forum
I try to compile Opencv using this tutorial - link text When i promt cmake ... error: cannot find symbol [javac] import org.opencv.core....
Read more >
[Solved]-"cannot find symbol" while compile opencv-Opencv
score:1. solution is very simple!!! Trouble was in symbol "+" in path!!! /Users/zhuk/android+opencv/opencv/opencv/. replace opencv path solve the problem.
Read more >
The Import Org.Apache.Commons.Net Cannot Be Resolved
error: cannot find symbol import org.opencv.DocumentScannerPackage #52. Closed. prabhakaran8737 opened this issue on Jun 17. Cannot resolve symbol 'java' ...
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