Open zedtux opened 6 years ago
@zedtux please have look https://stackoverflow.com/questions/30803405/cannot-resolve-symbol-appcompatactivity-support-v7-libraries-arent-recognizeded. If didn't work, can you share the code? Let me try!
@aseemnishad Didn;t work for me either. Task :react-native-android-scanner:compileDebugJavaWithJavac FAILED /home/swagat/reactnativeapp/androidscannerlatest/node_modules/react-native-android-scanner/android/src/main/java/com/reactlibrary/RNReactNativeAndroidScannerModule.java:11: error: cannot find symbol import android.support.v7.app.ActionBarActivity; ^ symbol: class ActionBarActivity location: package android.support.v7.app 1 error
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
Can you share your code?
Usually, I am getting
Execution failed for task ':react-native-android-scanner:compileDebugJavaWithJavac
when there is not enough free RAM memory. Try rebuilding with closing most of your browser's tabs or even the browser.
it worked for me ...
Switching to AndroidX helped me:
import androidx.appcompat.app.AppCompatActivity;
SamiChab Switching to AndroidX helped me:
import androidx.appcompat.app.AppCompatActivity;
Thank you very much SamiChab . I searched for an answer to this error for 3 hours. Your option helped me
Switching to AndroidX helped me:
import androidx.appcompat.app.AppCompatActivity;
Thanks a lot. that works for me too.
After having removed the
android:allowBackup="false"
line from myAndroidManifest.xml
file, which prevented me to compile this project, I'm now facing the following compilation issue :