adbayb / react-native-android-kit

:package: Android Native Kit for React-Native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Cannot find symbol" when trying to run

tituswoo opened this issue · comments

After following the installation instructions, I ran react-native run-android and got the following error message:

:app:compileDebugJavaWithJavac
/Users/tituswoo/git/testProject/testProject/android/app/src/main/java/com/testProject/MainActivity.java:8: error: cannot find symbol
import fr.ayoubdev.rnac.RNAKPackage;
                       ^
  symbol:   class RNAKPackage
  location: package fr.ayoubdev.rnac
/Users/tituswoo/git/testProject/testProject/android/app/src/main/java/com/testProject/MainActivity.java:47: error: cannot find symbol
            new RNAKPackage()
                ^
  symbol:   class RNAKPackage
  location: class MainActivity
2 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.

BUILD FAILED

Apologies if it's an obvious fix, but it has me blocked xD

react-native 0.28.0
react-native-cli 1.0.0

Thank you for reporting :)

Fixed in v1.1.1 thanks to @j-burgos