Library module not working in my projects app module android - android

I have created a library module which contains some activity and transactions logic, which will further be used by different existing applications. The library module uses androidx but my existing projects dont uses the androidx. Also I dont want to messed up with my existing project.
Added module dependency to the project
implementation project(':abcdSDKModule')
After importing the library module I got lots of error like
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\XXXX-android\app\src\main\java\com\abc\mmp\utils\view\PinEntryEditText.java:71:
error: cannot find symbol
protected OnClickListener mClickListener;
^
symbol: class OnClickListener
location: class PinEntryEditText
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\abc\mmp\utils\view\PinEntryEditText.java:280: error: cannot find symbol
public void setOnClickListener(OnClickListener l) {
^
symbol: class OnClickListener
location: class PinEntryEditText
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\xxxx\pinLib\PinCompatActivity.java:20: error: cannot find symbol
public class PinCompatActivity extends AppCompatActivity {
^
symbol: class AppCompatActivity
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\xxxx\mmp\pinLib\PinFragmentActivity.java:20: error: cannot find symbol
public class PinFragmentActivity extends FragmentActivity {
^
symbol: class FragmentActivity
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\xxxx\mmp\pinLib\views\PinActionBarActivity.java:14: error: cannot find symbol
public class PinActionBarActivity extends AppCompatActivity {
^
symbol: class AppCompatActivity
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\xxxx\mmp\test.java:8: error: cannot find symbol
public class test extends AppCompatActivity {
^
symbol: class AppCompatActivity
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\xxxx\mmp\utils\DividerItemDecorator.java:49: error: cannot find symbol
public void getItemOffsets(Rect outRect, View view, RecyclerView parent,
^
symbol: class RecyclerView
location: class DividerItemDecorator
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\xxxx\mmp\utils\DividerItemDecorator.java:67: error: cannot find symbol
public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) {
^
symbol: class RecyclerView
location: class DividerItemDecorator
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\xxxx\mmp\utils\DividerItemDecorator.java:119: error: cannot find symbol
private int getOrientation(RecyclerView parent) {
^
symbol: class RecyclerView
location: class DividerItemDecorator
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\xxxx\mmp\utils\EndlessRecyclerScrollListener.java:27: error: cannot find symbol
public EndlessRecyclerScrollListener(LinearLayoutManager layoutManager) {
^
symbol: class LinearLayoutManager
location: class EndlessRecyclerScrollListener
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\EndlessRecyclerScrollListener.java:31: error: cannot find symbol
public EndlessRecyclerScrollListener(GridLayoutManager layoutManager) {
^
symbol: class GridLayoutManager
location: class EndlessRecyclerScrollListener
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\EndlessRecyclerScrollListener.java:36: error: cannot find symbol
public EndlessRecyclerScrollListener(StaggeredGridLayoutManager layoutManager) {
^
symbol: class StaggeredGridLayoutManager
location: class EndlessRecyclerScrollListener
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\EndlessRecyclerScrollListener.java:58: error: cannot find symbol
public void onScrolled(RecyclerView view, int dx, int dy) {
^
symbol: class RecyclerView
location: class EndlessRecyclerScrollListener
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\EndlessRecyclerScrollListener.java:108: error: cannot find symbol
public abstract void onLoadMore(int page, int totalItemsCount, RecyclerView view);
^
symbol: class RecyclerView
location: class EndlessRecyclerScrollListener
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\GridDividerDecoration.java:29: error: cannot find symbol
public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) {
^
symbol: class RecyclerView
location: class GridDividerDecoration
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\GridDividerDecoration.java:37: error: cannot find symbol
public void drawVertical(Canvas c, RecyclerView parent) {
^
symbol: class RecyclerView
location: class GridDividerDecoration
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\GridDividerDecoration.java:59: error: cannot find symbol
public void drawHorizontal(Canvas c, RecyclerView parent) {
^
symbol: class RecyclerView
location: class GridDividerDecoration
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\GridDividerDecoration.java:77: error: cannot find symbol
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
^
symbol: class RecyclerView
location: class GridDividerDecoration
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\OverscrollScalingViewAppBarLayoutBehavior.java:55: error: cannot find symbol
public boolean layoutDependsOn(CoordinatorLayout parent, View child, View dependency) {
^
symbol: class CoordinatorLayout
location: class OverscrollScalingViewAppBarLayoutBehavior
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\OverscrollScalingViewAppBarLayoutBehavior.java:60: error: cannot find symbol
public boolean onLayoutChild(CoordinatorLayout parent, View abl, int layoutDirection) {
^
symbol: class CoordinatorLayout
location: class OverscrollScalingViewAppBarLayoutBehavior
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\OverscrollScalingViewAppBarLayoutBehavior.java:73: error: cannot find symbol
public void onNestedScroll(CoordinatorLayout coordinatorLayout, View child, View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed) {
^
symbol: class CoordinatorLayout
location: class OverscrollScalingViewAppBarLayoutBehavior
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\OverscrollScalingViewAppBarLayoutBehavior.java:96: error: cannot find symbol
public boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout, View child, View directTargetChild, View target, int nestedScrollAxes) {
^
symbol: class CoordinatorLayout
location: class OverscrollScalingViewAppBarLayoutBehavior
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\OverscrollScalingViewAppBarLayoutBehavior.java:101: error: cannot find symbol
public void onStopNestedScroll(CoordinatorLayout coordinatorLayout, View child, View target) {
^
symbol: class CoordinatorLayout
location: class OverscrollScalingViewAppBarLayoutBehavior
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\OverscrollScalingViewAppBarLayoutBehavior.java:111: error: cannot find symbol
private ViewPropertyAnimatorListener mShouldRestoreListener = new ViewPropertyAnimatorListenerAdapter() {
^
symbol: class ViewPropertyAnimatorListener
location: class OverscrollScalingViewAppBarLayoutBehavior.ViewScaler
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\OverscrollScalingViewAppBarLayoutBehavior.java:117: error: cannot find symbol
private ViewPropertyAnimatorCompat mScaleAnimator;
^
symbol: class ViewPropertyAnimatorCompat
location: class OverscrollScalingViewAppBarLayoutBehavior.ViewScaler
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\view\CalendarView.java:54: error: cannot find symbol
private RecyclerView grid;
^
symbol: class RecyclerView
location: class CalendarView
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\view\PinEntryEditText2.java:34: error: cannot find symbol
private OnClickListener mClickListener;
^
symbol: class OnClickListener
location: class PinEntryEditText2
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\view\PinEntryEditText2.java:133: error: cannot find symbol
public void setOnClickListener(OnClickListener l) {
^
symbol: class OnClickListener
location: class PinEntryEditText2
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\view\TouchImageView.java:97: error: cannot find symbol
private ScaleType mScaleType;
^
symbol: class ScaleType
location: class TouchImageView
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\view\TouchImageView.java:117: error: cannot find symbol
private OnTouchListener userTouchListener = null;
^
symbol: class OnTouchListener
location: class TouchImageView
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\view\TouchImageView.java:159: error: cannot find symbol
public void setOnTouchListener(OnTouchListener l) {
^
symbol: class OnTouchListener
location: class TouchImageView
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\view\TouchImageView.java:200: error: cannot find symbol
public void setScaleType(ScaleType type) {
^
symbol: class ScaleType
location: class TouchImageView
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\view\TouchImageView.java:220: error: cannot find symbol
public ScaleType getScaleType() {
^
symbol: class ScaleType
location: class TouchImageView
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\view\TouchImageView.java:406: error: cannot find symbol
public void setZoom(float scale, float focusX, float focusY, ScaleType scaleType) {
^
symbol: class ScaleType
location: class TouchImageView
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\view\TouchImageView.java:1293: error: cannot find symbol
public ScaleType scaleType;
^
symbol: class ScaleType
location: class TouchImageView.ZoomVariables
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\-android\app\src\main\java\com\mta\mmp\utils\view\TouchImageView.java:1295: error: cannot find symbol
public ZoomVariables(float scale, float focusX, float focusY, ScaleType scaleType) {
^
symbol: class ScaleType
location: class TouchImageView.ZoomVariables
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\utils\view\TouchImageView.java:844: error: cannot find symbol
private class PrivateOnTouchListener implements OnTouchListener {
^
symbol: class OnTouchListener
location: class TouchImageView
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\views\mcoupon\EndlessRecyclerScrollListner.java:27: error: cannot find symbol
public EndlessRecyclerScrollListner(LinearLayoutManager layoutManager) {
^
symbol: class LinearLayoutManager
location: class EndlessRecyclerScrollListner
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\views\mcoupon\EndlessRecyclerScrollListner.java:31: error: cannot find symbol
public EndlessRecyclerScrollListner(GridLayoutManager layoutManager) {
^
symbol: class GridLayoutManager
location: class EndlessRecyclerScrollListner
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\views\mcoupon\EndlessRecyclerScrollListner.java:36: error: cannot find symbol
public EndlessRecyclerScrollListner(StaggeredGridLayoutManager layoutManager) {
^
symbol: class StaggeredGridLayoutManager
location: class EndlessRecyclerScrollListner
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\views\mcoupon\EndlessRecyclerScrollListner.java:57: error: cannot find symbol
public void onScrolled(RecyclerView view, int dx, int dy) {
^
symbol: class RecyclerView
location: class EndlessRecyclerScrollListner
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\views\mcoupon\EndlessRecyclerScrollListner.java:107: error: cannot find symbol
public abstract void onLoadMore(int page, int totalItemsCount, RecyclerView view);
^
symbol: class RecyclerView
location: class EndlessRecyclerScrollListner
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\pinLib\managers\AppLockActivity.java:333: error: cannot find symbol
protected void onActivityResult(int requestCode, int resultCode, #Nullable Intent data) {
^
symbol: class Nullable
location: class AppLockActivity
e: C:\Users\Dell\AndroidStudioProjects\OfficeProject\xxxx-android\app\src\main\java\com\mta\mmp\pinLib\managers\AppLockActivity.java:367: error: cannot find symbol
public void onRequestPermissionsResult(int requestCode, #NonNull String[] permissions, #NonNull int[] grantResults) {
^
:app:kaptDebugKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:kaptDebugKotlin'.
> Compilation error. See log for more details
what am I missing ?
Some where I found this and tried in build gradle but no positive result
configurations.all {
resolutionStrategy {
force 'androidx.media:media:1.0.0'
}
}
I have also added these in gradle.properties
android.useAndroidX=true
android.enableJetifier=true

Android studio->project structure->app->dependencies->add module

Related

Execution failed for task ':react-native-keychain:compileReleaseJavaWithJavac'. when trying to ./gradlew bundleRelease

I am trying to get the .aab and the .apk files to publish the android side of a react-native app to the Google Play Store.
After about 2 minutes of working Task :react-native-keychain:compileReleaseJavaWithJavac FAILED is printed.
It gives a little more information but I have been unable to find anything that fixes this error.
Execution failed for task ':react-native-keychain:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Logs:
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/PrefsStorage.java:5: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorage.java:3: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/KeychainModule.java:4: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java:8: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageFacebookConceal.java:4: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/PrefsStorage.java:33: error: cannot find symbol
public ResultSet getEncryptedEntry(#NonNull String service) {
^
symbol: class NonNull
location: class PrefsStorage
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/PrefsStorage.java:47: error: cannot find symbol
public void removeEntry(#NonNull String service) {
^
symbol: class NonNull
location: class PrefsStorage
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/PrefsStorage.java:58: error: cannot find symbol
public void storeEncryptedEntry(#NonNull String service, #NonNull EncryptionResult encryptionResult) {
^
symbol: class NonNull
location: class PrefsStorage
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/PrefsStorage.java:58: error: cannot find symbol
public void storeEncryptedEntry(#NonNull String service, #NonNull EncryptionResult encryptionResult) {
^
symbol: class NonNull
location: class PrefsStorage
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorage.java:42: error: cannot find symbol
EncryptionResult encrypt(#NonNull String service, #NonNull String username, #NonNull String password, SecurityLevel level) throws CryptoFailedException;
^
symbol: class NonNull
location: interface CipherStorage
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorage.java:42: error: cannot find symbol
EncryptionResult encrypt(#NonNull String service, #NonNull String username, #NonNull String password, SecurityLevel level) throws CryptoFailedException;
^
symbol: class NonNull
location: interface CipherStorage
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorage.java:42: error: cannot find symbol
EncryptionResult encrypt(#NonNull String service, #NonNull String username, #NonNull String password, SecurityLevel level) throws CryptoFailedException;
^
symbol: class NonNull
location: interface CipherStorage
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorage.java:44: error: cannot find symbol
DecryptionResult decrypt(#NonNull String service, #NonNull byte[] username, #NonNull byte[] password) throws CryptoFailedException;
^
symbol: class NonNull
location: interface CipherStorage
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorage.java:44: error: cannot find symbol
DecryptionResult decrypt(#NonNull String service, #NonNull byte[] username, #NonNull byte[] password) throws CryptoFailedException;
^
symbol: class NonNull
location: interface CipherStorage
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorage.java:44: error: cannot find symbol
DecryptionResult decrypt(#NonNull String service, #NonNull byte[] username, #NonNull byte[] password) throws CryptoFailedException;
^
symbol: class NonNull
location: interface CipherStorage
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorage.java:46: error: cannot find symbol
void removeKey(#NonNull String service) throws KeyStoreAccessException;
^
symbol: class NonNull
location: interface CipherStorage
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/KeychainModule.java:186: error: cannot find symbol
public void hasInternetCredentialsForServer(#NonNull String server, Promise promise) {
^
symbol: class NonNull
location: class KeychainModule
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/KeychainModule.java:200: error: cannot find symbol
public void setInternetCredentialsForServer(#NonNull String server, String username, String password, String minimumSecurityLevel, ReadableMap unusedOptions, Promise promise) {
^
symbol: class NonNull
location: class KeychainModule
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/KeychainModule.java:205: error: cannot find symbol
public void getInternetCredentialsForServer(#NonNull String server, ReadableMap unusedOptions, Promise promise) {
^
symbol: class NonNull
location: class KeychainModule
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/KeychainModule.java:210: error: cannot find symbol
public void resetInternetCredentialsForServer(#NonNull String server, ReadableMap unusedOptions, Promise promise) {
^
symbol: class NonNull
location: class KeychainModule
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/KeychainModule.java:299: error: cannot find symbol
#NonNull
^
symbol: class NonNull
location: class KeychainModule
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java:91: error: cannot find symbol
public EncryptionResult encrypt(#NonNull String service, #NonNull String username, #NonNull String password, SecurityLevel level) throws CryptoFailedException {
^
symbol: class NonNull
location: class CipherStorageKeystoreAESCBC
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java:91: error: cannot find symbol
public EncryptionResult encrypt(#NonNull String service, #NonNull String username, #NonNull String password, SecurityLevel level) throws CryptoFailedException {
^
symbol: class NonNull
location: class CipherStorageKeystoreAESCBC
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java:91: error: cannot find symbol
public EncryptionResult encrypt(#NonNull String service, #NonNull String username, #NonNull String password, SecurityLevel level) throws CryptoFailedException {
^
symbol: class NonNull
location: class CipherStorageKeystoreAESCBC
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java:148: error: cannot find symbol
private void generateKeyAndStoreUnderAlias(#NonNull String service, SecurityLevel requiredLevel) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException, CryptoFailedException {
^
symbol: class NonNull
location: class CipherStorageKeystoreAESCBC
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java:164: error: cannot find symbol
public DecryptionResult decrypt(#NonNull String service, #NonNull byte[] username, #NonNull byte[] password) throws CryptoFailedException {
^
symbol: class NonNull
location: class CipherStorageKeystoreAESCBC
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java:164: error: cannot find symbol
public DecryptionResult decrypt(#NonNull String service, #NonNull byte[] username, #NonNull byte[] password) throws CryptoFailedException {
^
symbol: class NonNull
location: class CipherStorageKeystoreAESCBC
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java:164: error: cannot find symbol
public DecryptionResult decrypt(#NonNull String service, #NonNull byte[] username, #NonNull byte[] password) throws CryptoFailedException {
^
symbol: class NonNull
location: class CipherStorageKeystoreAESCBC
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java:189: error: cannot find symbol
public void removeKey(#NonNull String service) throws KeyStoreAccessException {
^
symbol: class NonNull
location: class CipherStorageKeystoreAESCBC
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java:265: error: cannot find symbol
private String getDefaultServiceIfEmpty(#NonNull String service) {
^
symbol: class NonNull
location: class CipherStorageKeystoreAESCBC
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java:264: error: cannot find symbol
#NonNull
^
symbol: class NonNull
location: class CipherStorageKeystoreAESCBC
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageFacebookConceal.java:49: error: cannot find symbol
public EncryptionResult encrypt(#NonNull String service, #NonNull String username, #NonNull String password, SecurityLevel level) throws CryptoFailedException {
^
symbol: class NonNull
location: class CipherStorageFacebookConceal
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageFacebookConceal.java:49: error: cannot find symbol
public EncryptionResult encrypt(#NonNull String service, #NonNull String username, #NonNull String password, SecurityLevel level) throws CryptoFailedException {
^
symbol: class NonNull
location: class CipherStorageFacebookConceal
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageFacebookConceal.java:49: error: cannot find symbol
public EncryptionResult encrypt(#NonNull String service, #NonNull String username, #NonNull String password, SecurityLevel level) throws CryptoFailedException {
^
symbol: class NonNull
location: class CipherStorageFacebookConceal
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageFacebookConceal.java:72: error: cannot find symbol
public DecryptionResult decrypt(#NonNull String service, #NonNull byte[] username, #NonNull byte[] password) throws CryptoFailedException {
^
symbol: class NonNull
location: class CipherStorageFacebookConceal
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageFacebookConceal.java:72: error: cannot find symbol
public DecryptionResult decrypt(#NonNull String service, #NonNull byte[] username, #NonNull byte[] password) throws CryptoFailedException {
^
symbol: class NonNull
location: class CipherStorageFacebookConceal
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageFacebookConceal.java:72: error: cannot find symbol
public DecryptionResult decrypt(#NonNull String service, #NonNull byte[] username, #NonNull byte[] password) throws CryptoFailedException {
^
symbol: class NonNull
location: class CipherStorageFacebookConceal
/Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageFacebookConceal.java:93: error: cannot find symbol
public void removeKey(#NonNull String service) {
^
symbol: class NonNull
location: class CipherStorageFacebookConceal
Note: /Users/thomasstansel/Documents/GitHub/monitoring-mobile-app/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/DeviceAvailability.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
I have also run the app in android studio and get the same error. I am especially confused because the app works when I run the npx react-native run-android command.
If any more information is needed please let me know and thank you in advance for any help!
One of the below should work for you:
Edit your build.gradle like below
allprojects {
tasks.withType(Javadoc).all { enabled = false }
repositories {
...
}
}
If the above did not work, try below
simply comment out supportLibVersion from your build.gradle then clean and rebuild.

Dagger component: error: cannot find symbol kotlin classes

Generated component of dagger couldn't find symbol of the kotlin classes even if there is no read lines on this component.
Task :app:compileStagingDebugJavaWithJavac FAILED
\app\build\generated\source\kapt\stagingDebug\...\DaggerAppComponent.java:49: error: cannot find symbol
import com...features.Main.splash_screen.SplashScreenActivity;
^
symbol: class SplashScreenActivity
location: package com...features.Main.splash_screen
When I type the code in java it runs successfully and this issue only happens in windows. It doesn't appear in mac or linux.
interface ISplashScreen : IView {
fun gotoMainScreen()
}
#Module
abstract class SplashModule {
#Binds
abstract fun provideISplash(splashScreenActivity: SplashScreenActivity): ISplashScreen
}
class SplashScreenActivity : BaseActivity<SplashScreenPresenter>(), ISplashScreen {
#Inject
lateinit var splashScreenPresenter: SplashScreenPresenter
override fun gotoMainScreen() {
Navigator.goToMainScreen(context)
}
override fun onCreateInit(savedInstanceState: Bundle?) {
}
override fun getLayout(): Int = R.layout.activity_splash
override fun initPresenter(): SplashScreenPresenter = splashScreenPresenter
}
class SplashScreenPresenter #Inject constructor(view: ISplashScreen,
environment: PresenterEnvironment)
: BasePresenter<ISplashScreen>(view, environment) {
// TODO : load project data by API
#SuppressLint("CheckResult")
override fun startLogic(savedInstance: Bundle?) {
super.startLogic(savedInstance)
Completable.timer(3, TimeUnit.SECONDS)
.compose(getDestroyIoTransformer<Unit>())
.subscribe {
view.gotoMainScreen()
}
}
}
#Module
public abstract class ActivityModule {
#ContributesAndroidInjector(modules = SplashModule.class)
abstract SplashScreenActivity bindSplashScreenActivity();
#ContributesAndroidInjector(modules = { CartFragmentProvider.class, CategoryFragmentProvider.class})
abstract MainActivity bindMainActivity();
}
//Gradle
apply plugin: 'com.android.library'
apply plugin: 'kotlin-platform-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android'
implementation "com.google.dagger:dagger:2.23.1"
implementation "com.google.dagger:dagger-android-support:2.23.1"
kapt "com.google.dagger:dagger-compiler:2.23.1"
kapt "com.google.dagger:dagger-android-processor:2.23.1"
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\components\DaggerAppComponent.java:49: error: cannot find symbol
import com....features.Main.splash_screen.SplashScreenActivity;
^
symbol: class SplashScreenActivity
location: package com....features.Main.splash_screen
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\components\DaggerAppComponent.java:51: error: cannot find symbol
import com....features.Main.splash_screen.SplashScreenPresenter;
^
symbol: class SplashScreenPresenter
location: package com....features.Main.splash_screen
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\modules\ActivityModule_BindSplashScreenActivity.java:3: error: cannot find symbol
import com....features.Main.splash_screen.SplashModule;
^
symbol: class SplashModule
location: package com....features.Main.splash_screen
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\modules\ActivityModule_BindSplashScreenActivity.java:4: error: cannot find symbol
import com....features.Main.splash_screen.SplashScreenActivity;
^
symbol: class SplashScreenActivity
location: package com....features.Main.splash_screen
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\modules\ActivityModule_BindSplashScreenActivity.java:25: error: cannot find symbol
public interface SplashScreenActivitySubcomponent extends AndroidInjector<SplashScreenActivity> {
^
symbol: class SplashScreenActivity
location: class ActivityModule_BindSplashScreenActivity
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\modules\ActivityModule_BindSplashScreenActivity.java:27: error: cannot find symbol
interface Factory extends AndroidInjector.Factory<SplashScreenActivity> {}
^
symbol: class SplashScreenActivity
location: interface SplashScreenActivitySubcomponent
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\components\DaggerAppComponent.java:217: error: cannot find symbol
SplashScreenActivity arg0) {
^
symbol: class SplashScreenActivity
location: class DaggerAppComponent.SplashScreenActivitySubcomponentFactory
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\components\DaggerAppComponent.java:224: error: cannot find symbol
private final SplashScreenActivity arg0;
^
symbol: class SplashScreenActivity
location: class DaggerAppComponent.SplashScreenActivitySubcomponentImpl
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\components\DaggerAppComponent.java:226: error: cannot find symbol
private SplashScreenActivitySubcomponentImpl(SplashScreenActivity arg0Param) {
^
symbol: class SplashScreenActivity
location: class DaggerAppComponent.SplashScreenActivitySubcomponentImpl
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\components\DaggerAppComponent.java:233: error: cannot find symbol
private SplashScreenPresenter getSplashScreenPresenter() {
^
symbol: class SplashScreenPresenter
location: class DaggerAppComponent.SplashScreenActivitySubcomponentImpl
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\components\DaggerAppComponent.java:237: error: cannot find symbol
public void inject(SplashScreenActivity arg0) {
^
symbol: class SplashScreenActivity
location: class DaggerAppComponent.SplashScreenActivitySubcomponentImpl
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\components\DaggerAppComponent.java:240: error: cannot find symbol
private SplashScreenActivity injectSplashScreenActivity(SplashScreenActivity instance) {
^
symbol: class SplashScreenActivity
location: class DaggerAppComponent.SplashScreenActivitySubcomponentImpl
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\components\DaggerAppComponent.java:240: error: cannot find symbol
private SplashScreenActivity injectSplashScreenActivity(SplashScreenActivity instance) {
^
symbol: class SplashScreenActivity
location: class DaggerAppComponent.SplashScreenActivitySubcomponentImpl
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenActivity_MembersInjector.java:14: error: cannot find symbol
public final class SplashScreenActivity_MembersInjector implements MembersInjector<SplashScreenActivity> {
^
symbol: class SplashScreenActivity
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenActivity_MembersInjector.java:25: error: cannot find symbol
private final Provider<SplashScreenPresenter> splashScreenPresenterProvider;
^
symbol: class SplashScreenPresenter
location: class SplashScreenActivity_MembersInjector
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenActivity_MembersInjector.java:33: error: cannot find symbol
Provider<SplashScreenPresenter> splashScreenPresenterProvider) {
^
symbol: class SplashScreenPresenter
location: class SplashScreenActivity_MembersInjector
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenActivity_MembersInjector.java:48: error: cannot find symbol
Provider<SplashScreenPresenter> splashScreenPresenterProvider) {
^
symbol: class SplashScreenPresenter
location: class SplashScreenActivity_MembersInjector
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenActivity_MembersInjector.java:42: error: cannot find symbol
public static MembersInjector<SplashScreenActivity> create(
^
symbol: class SplashScreenActivity
location: class SplashScreenActivity_MembersInjector
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenActivity_MembersInjector.java:52: error: cannot find symbol
public void injectMembers(SplashScreenActivity instance) {
^
symbol: class SplashScreenActivity
location: class SplashScreenActivity_MembersInjector
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenActivity_MembersInjector.java:61: error: cannot find symbol
public static void injectSplashScreenPresenter(SplashScreenActivity instance,
^
symbol: class SplashScreenActivity
location: class SplashScreenActivity_MembersInjector
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenActivity_MembersInjector.java:62: error: cannot find symbol
SplashScreenPresenter splashScreenPresenter) {
^
symbol: class SplashScreenPresenter
location: class SplashScreenActivity_MembersInjector
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenPresenter_Factory.java:8: error: cannot find symbol
public final class SplashScreenPresenter_Factory implements Factory<SplashScreenPresenter> {
^
symbol: class SplashScreenPresenter
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenPresenter_Factory.java:9: error: cannot find symbol
private final Provider<ISplashScreen> viewProvider;
^
symbol: class ISplashScreen
location: class SplashScreenPresenter_Factory
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenPresenter_Factory.java:13: error: cannot find symbol
public SplashScreenPresenter_Factory(Provider<ISplashScreen> viewProvider,
^
symbol: class ISplashScreen
location: class SplashScreenPresenter_Factory
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenPresenter_Factory.java:20: error: cannot find symbol
public SplashScreenPresenter get() {
^
symbol: class SplashScreenPresenter
location: class SplashScreenPresenter_Factory
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenPresenter_Factory.java:24: error: cannot find symbol
public static SplashScreenPresenter_Factory create(Provider<ISplashScreen> viewProvider,
^
symbol: class ISplashScreen
location: class SplashScreenPresenter_Factory
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenPresenter_Factory.java:29: error: cannot find symbol
public static SplashScreenPresenter newInstance(ISplashScreen view,
^
symbol: class ISplashScreen
location: class SplashScreenPresenter_Factory
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenPresenter_Factory.java:29: error: cannot find symbol
public static SplashScreenPresenter newInstance(ISplashScreen view,
^
symbol: class SplashScreenPresenter
location: class SplashScreenPresenter_Factory
...\app\src\main\java\com\...\common\di\modules\ActivityModule.java:3: error: cannot find symbol
import com....features.Main.splash_screen.SplashModule;
^
symbol: class SplashModule
location: package com....features.Main.splash_screen
...\app\src\main\java\com\...\common\di\modules\ActivityModule.java:4: error: cannot find symbol
import com....features.Main.splash_screen.SplashScreenActivity;
^
symbol: class SplashScreenActivity
location: package com....features.Main.splash_screen
...\app\src\main\java\com\...\common\di\modules\ActivityModule.java:16: error: cannot find symbol
abstract SplashScreenActivity bindSplashScreenActivity();
^
symbol: class SplashScreenActivity
location: class ActivityModule
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\modules\ActivityModule_BindSplashScreenActivity.java:24: error: cannot find symbol
#Subcomponent(modules = SplashModule.class)
^
symbol: class SplashModule
location: class ActivityModule_BindSplashScreenActivity
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\modules\ActivityModule_BindSplashScreenActivity.java:20: error: cannot find symbol
#ClassKey(SplashScreenActivity.class)
^
symbol: class SplashScreenActivity
location: class ActivityModule_BindSplashScreenActivity
...\app\src\main\java\com\...\common\di\modules\ActivityModule.java:15: error: cannot find symbol
#ContributesAndroidInjector(modules = SplashModule.class)
^
symbol: class SplashModule
location: class ActivityModule
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\components\DaggerAppComponent.java:143: error: cannot find symbol
return MapBuilder.<Class<?>, Provider<AndroidInjector.Factory<?>>>newMapBuilder(2).put(SplashScreenActivity.class, (Provider) splashScreenActivitySubcomponentFactoryProvider).put(MainActivity.class, (Provider) mainActivitySubcomponentFactoryProvider).build();}
^
symbol: class SplashScreenActivity
location: class DaggerAppComponent
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\components\DaggerAppComponent.java:234: error: cannot find symbol
return new SplashScreenPresenter(arg0, DaggerAppComponent.this.providePresenterEnvironmentProvider.get());}
^
symbol: class SplashScreenPresenter
location: class DaggerAppComponent.SplashScreenActivitySubcomponentImpl
...\app\build\generated\source\kapt\stagingDebug\com\...\common\di\components\DaggerAppComponent.java:271: error: cannot find symbol
return MapBuilder.<Class<?>, Provider<AndroidInjector.Factory<?>>>newMapBuilder(4).put(SplashScreenActivity.class, (Provider) DaggerAppComponent.this.splashScreenActivitySubcomponentFactoryProvider).put(MainActivity.class, (Provider) DaggerAppComponent.this.mainActivitySubcomponentFactoryProvider).put(CartFragment.class, (Provider) cartFragmentSubcomponentFactoryProvider).put(CategoriesFragment.class, (Provider) categoriesFragmentSubcomponentFactoryProvider).build();}
^
symbol: class SplashScreenActivity
location: class DaggerAppComponent.MainActivitySubcomponentImpl
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenPresenter_Factory.java:21: error: cannot find symbol
return new SplashScreenPresenter(viewProvider.get(), environmentProvider.get());
^
symbol: class SplashScreenPresenter
location: class SplashScreenPresenter_Factory
...\app\build\generated\source\kapt\stagingDebug\com\...\features\Main\splash_screen\SplashScreenPresenter_Factory.java:31: error: cannot find symbol
return new SplashScreenPresenter(view, environment);
^
symbol: class SplashScreenPresenter
location: class SplashScreenPresenter_Factory
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
39 errors
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:compileStagingDebugJavaWithJavac'.
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. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 23s
50 actionable tasks: 9 executed, 41 up-to-date
does your project use kapt?
If so, you can disable the cache of kapt.
Open your build.gradle file in the app module, and set the useBuildCache to false, and sync the Gradle.
Try to rebuild your code.
kapt {
useBuildCache = false
}
If everything goes fine, you can enable useBuildCache again.

react-native-file-provider giving error while gradle build

i installed react-native-file-provider and during gradle build i am getting this error. Execution failed for task
':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
/../test2/android/app/src/main/java/com/testapp2/MainApplication.java:5: error: cannot find symbol
import com.facebook.react.ReactApplication;
^
symbol: class ReactApplication
location: package com.facebook.react
/../test2/android/app/src/main/java/com/testapp2/MainApplication.java:8: error: cannot find symbol
import com.facebook.react.ReactNativeHost;
^
symbol: class ReactNativeHost
location: package com.facebook.react
/../test2/android/app/src/main/java/com/testapp2/MainApplication.java:16: error: cannot find symbol
public class MainApplication extends Application implements ReactApplication {
^
symbol: class ReactApplication
/../test2/android/app/src/main/java/com/testapp2/MainApplication.java:18: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol: class ReactNativeHost
location: class MainApplication
/../test2/android/app/src/main/java/com/testapp2/MainApplication.java:40: error: cannot find symbol
public ReactNativeHost getReactNativeHost() {
^
symbol: class ReactNativeHost
location: class MainApplication
/../`enter code here`test2/android/app/src/main/java/com/testapp2/MainActivity.java:5: error: MainActivity is not abstract and does not override abstract method getPackages() in ReactActivity
public class MainActivity extends ReactActivity {
^
/../test2/android/app/src/main/java/com/testapp2/MainApplication.java:18: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol: class ReactNativeHost
location: class MainApplication
/../test2/android/app/src/main/java/com/testapp2/MainApplication.java:39: error: method does not override or implement a method from a supertype
#Override
^
8 errors

Realm messes with Android data binding

I have an app that builds OK but as soon as I make one of my classes Realm-aware by either #RealmClass/RealmModel or RealmObject I get a ton of errors like those below.
Is this a bug or am I doing something wrong?
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AccountsmoduleBinding.java:49: error: cannot find symbol
protected AccountsmoduleBinding(DataBindingComponent _bindingComponent, View _root,
^
symbol: class DataBindingComponent
location: class AccountsmoduleBinding
w: C:\Dane.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-jre7\1.1.4-2\272a21c30432c943d618008fbbd34762eb0d6c8a\kotlin-stdlib-jre7-1.1.4-2.jar: kotlin-stdlib-jre7 is deprecated. Please use kotlin-stdlib-jdk7 instead
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AccountsmoduleBinding.java:79: error: cannot find symbol
#Nullable ViewGroup root, boolean attachToRoot, #Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class AccountsmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AccountsmoduleBinding.java:90: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class AccountsmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AccountsmoduleBinding.java:101: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class AccountsmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AllaccountsmoduleBinding.java:18: error: cannot find symbol
protected AllaccountsmoduleBinding(DataBindingComponent _bindingComponent, View _root,
^
symbol: class DataBindingComponent
location: class AllaccountsmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AllaccountsmoduleBinding.java:38: error: cannot find symbol
#Nullable ViewGroup root, boolean attachToRoot, #Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class AllaccountsmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AllaccountsmoduleBinding.java:49: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class AllaccountsmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AllaccountsmoduleBinding.java:60: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class AllaccountsmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AnotherfragmentLayoutBinding.java:22: error: cannot find symbol
protected AnotherfragmentLayoutBinding(DataBindingComponent _bindingComponent, View _root,
^
symbol: class DataBindingComponent
location: class AnotherfragmentLayoutBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AnotherfragmentLayoutBinding.java:43: error: cannot find symbol
#Nullable ViewGroup root, boolean attachToRoot, #Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class AnotherfragmentLayoutBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AnotherfragmentLayoutBinding.java:54: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class AnotherfragmentLayoutBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AnotherfragmentLayoutBinding.java:65: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class AnotherfragmentLayoutBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AppactivationmoduleBinding.java:82: error: cannot find symbol
protected AppactivationmoduleBinding(DataBindingComponent _bindingComponent, View _root,
^
symbol: class DataBindingComponent
location: class AppactivationmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AppactivationmoduleBinding.java:126: error: cannot find symbol
#Nullable ViewGroup root, boolean attachToRoot, #Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class AppactivationmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AppactivationmoduleBinding.java:137: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class AppactivationmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\AppactivationmoduleBinding.java:148: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class AppactivationmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\BiometryloginmoduleBinding.java:62: error: cannot find symbol
protected BiometryloginmoduleBinding(DataBindingComponent _bindingComponent, View _root,
^
symbol: class DataBindingComponent
location: class BiometryloginmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\BiometryloginmoduleBinding.java:97: error: cannot find symbol
#Nullable ViewGroup root, boolean attachToRoot, #Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class BiometryloginmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\BiometryloginmoduleBinding.java:108: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class BiometryloginmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\BiometryloginmoduleBinding.java:119: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class BiometryloginmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\ConfirmationmoduleBinding.java:41: error: cannot find symbol
protected ConfirmationmoduleBinding(DataBindingComponent _bindingComponent, View _root,
^
symbol: class DataBindingComponent
location: class ConfirmationmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\ConfirmationmoduleBinding.java:68: error: cannot find symbol
#Nullable ViewGroup root, boolean attachToRoot, #Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class ConfirmationmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\ConfirmationmoduleBinding.java:79: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class ConfirmationmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\ConfirmationmoduleBinding.java:90: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class ConfirmationmoduleBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\DashboardmoduleaccountsfragmentBinding.java:30: error: cannot find symbol
protected DashboardmoduleaccountsfragmentBinding(DataBindingComponent _bindingComponent,
^
symbol: class DataBindingComponent
location: class DashboardmoduleaccountsfragmentBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\DashboardmoduleaccountsfragmentBinding.java:54: error: cannot find symbol
#Nullable ViewGroup root, boolean attachToRoot, #Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class DashboardmoduleaccountsfragmentBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\DashboardmoduleaccountsfragmentBinding.java:65: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class DashboardmoduleaccountsfragmentBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\DashboardmoduleaccountsfragmentBinding.java:76: error: cannot find symbol
#Nullable DataBindingComponent component) {
^
symbol: class DataBindingComponent
location: class DashboardmoduleaccountsfragmentBinding
e: C:\Dane\Projekty\Livecycle\app\build\generated\data_binding_base_class_source_out\debug\dataBindingGenBaseClassesDebug\out\pl\qus\livecycle\databinding\DashboardmoduleBinding.java:30: error: cannot find symbol
protected DashboardmoduleBinding(DataBindingComponent _bindingComponent, View _root,
CUT
Gradle plugins:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: "kotlin-kapt"
apply plugin: 'realm-android'
apply plugin: 'org.jetbrains.dokka-android'
Data class:
#RealmClass
open class AccountData (
#PrimaryKey #SerializedName("id")
var _id : String = "",
var accountNumber: String = "",
#SerializedName("type") var _type : String = "",
var name : String = "",
var availableFunds: Float = 0f,
var balance: Float = 0f,
#SerializedName("currency") var _currency: String = "",
var ownerName : String = "",
var interestRate : Float = 0f,
var sortCode : String = "",
var iban : String = "",
var openingDate : String = "",
var overdraft : Float = 0f,
var lockedFunds : Float = 0f,
var creditLimit : Float = 0f,
var defaultName: String = ""
) : RealmModel {
var type : AccountType
get() = AccountType.valueOf(_type)
set(value) { _type = value.name }
var currency : CurrencyType
get() = CurrencyType.valueOf(_currency)
set(value) { _currency = value.name }
}
#RealmClass
open class AccountData (
...
) : RealmModel {
var type : AccountType // <-- this is not a supported field type
get() = AccountType.valueOf(_type)
set(value) { _type = value.name }
var currency : CurrencyType // <-- this is not a supported field type
get() = CurrencyType.valueOf(_currency)
set(value) { _currency = value.name }
}
You need to mark unsupported "helper" fields with #Ignore annotation.
#field:Ignore
var type : AccountType // <-- this is not a supported field type
get() = AccountType.valueOf(_type)
set(value) { _type = value.name }
#field:Ignore
var currency : CurrencyType // <-- this is not a supported field type
get() = CurrencyType.valueOf(_currency)
set(value) { _currency = value.name }
}

While building Project, error in :app:compileDebugJava. It says error: package android.support.v7.app does not exist

I have all the required dependencies in the Module Settings. I have also installed all the support libraries using the sdk manager.
I get the following output from the Gradle Console
Executing tasks: [:app:assembleDebug]
Configuration on demand is an incubating feature.
:app:preBuild
:app:compileDebugNdk
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV72103Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServices6587Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:compileDebugJava
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/LoginConfim.java:4: error: package android.support.v7.app does not exist
import android.support.v7.app.ActionBarActivity;
^
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/LoginConfim.java:11: error: cannot find symbol
public class LoginConfim extends ActionBarActivity {
^
symbol: class ActionBarActivity
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/RegistrationScreen.java:4: error: package android.support.v7.app does not exist
import android.support.v7.app.ActionBarActivity;
^
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/RegistrationScreen.java:11: error: cannot find symbol
public class RegistrationScreen extends ActionBarActivity {
^
symbol: class ActionBarActivity
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:4: error: package android.support.v7.app does not exist
import android.support.v7.app.ActionBarActivity;
^
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:11: error: cannot find symbol
public class WelcomeScreen extends ActionBarActivity {
^
symbol: class ActionBarActivity
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/LoginConfim.java:13: error: method does not override or implement a method from a supertype
#Override
^
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/LoginConfim.java:15: error: cannot find symbol
super.onCreate(savedInstanceState);
^
symbol: variable super
location: class LoginConfim
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/LoginConfim.java:16: error: cannot find symbol
setContentView(R.layout.activity_login_confim);
^
symbol: method setContentView(int)
location: class LoginConfim
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/LoginConfim.java:20: error: method does not override or implement a method from a supertype
#Override
^
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/LoginConfim.java:23: error: cannot find symbol
getMenuInflater().inflate(R.menu.menu_login_confim, menu);
^
symbol: method getMenuInflater()
location: class LoginConfim
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/LoginConfim.java:27: error: method does not override or implement a method from a supertype
#Override
^
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/LoginConfim.java:39: error: cannot find symbol
return super.onOptionsItemSelected(item);
^
symbol: variable super
location: class LoginConfim
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/LoginConfim.java:43: error: cannot find symbol
startActivity(new Intent(getApplicationContext(), WelcomeScreen.class));
^
symbol: method getApplicationContext()
location: class LoginConfim
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/LoginConfim.java:43: error: cannot find symbol
startActivity(new Intent(getApplicationContext(), WelcomeScreen.class));
^
symbol: method startActivity(Intent)
location: class LoginConfim
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/RegistrationScreen.java:13: error: method does not override or implement a method from a supertype
#Override
^
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/RegistrationScreen.java:15: error: cannot find symbol
super.onCreate(savedInstanceState);
^
symbol: variable super
location: class RegistrationScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/RegistrationScreen.java:16: error: cannot find symbol
setContentView(R.layout.activity_registration_screen);
^
symbol: method setContentView(int)
location: class RegistrationScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/RegistrationScreen.java:20: error: method does not override or implement a method from a supertype
#Override
^
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/RegistrationScreen.java:23: error: cannot find symbol
getMenuInflater().inflate(R.menu.menu_registration_screen, menu);
^
symbol: method getMenuInflater()
location: class RegistrationScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/RegistrationScreen.java:27: error: method does not override or implement a method from a supertype
#Override
^
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/RegistrationScreen.java:39: error: cannot find symbol
return super.onOptionsItemSelected(item);
^
symbol: variable super
location: class RegistrationScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/RegistrationScreen.java:42: error: cannot find symbol
startActivity(new Intent(getApplicationContext(), WelcomeScreen.class));
^
symbol: method getApplicationContext()
location: class RegistrationScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/RegistrationScreen.java:42: error: cannot find symbol
startActivity(new Intent(getApplicationContext(), WelcomeScreen.class));
^
symbol: method startActivity(Intent)
location: class RegistrationScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:13: error: method does not override or implement a method from a supertype
#Override
^
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:15: error: cannot find symbol
super.onCreate(savedInstanceState);
^
symbol: variable super
location: class WelcomeScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:16: error: cannot find symbol
setContentView(R.layout.activity_welcome_screen);
^
symbol: method setContentView(int)
location: class WelcomeScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:20: error: method does not override or implement a method from a supertype
#Override
^
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:23: error: cannot find symbol
getMenuInflater().inflate(R.menu.menu_welcome_screen, menu);
^
symbol: method getMenuInflater()
location: class WelcomeScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:27: error: method does not override or implement a method from a supertype
#Override
^
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:39: error: cannot find symbol
return super.onOptionsItemSelected(item);
^
symbol: variable super
location: class WelcomeScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:43: error: cannot find symbol
startActivity(new Intent(getApplicationContext(), ShoppingWithFriendsLogin.class));
^
symbol: method getApplicationContext()
location: class WelcomeScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:43: error: cannot find symbol
startActivity(new Intent(getApplicationContext(), ShoppingWithFriendsLogin.class));
^
symbol: method startActivity(Intent)
location: class WelcomeScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:47: error: cannot find symbol
startActivity(new Intent(getApplicationContext(), RegistrationScreen.class));
^
symbol: method getApplicationContext()
location: class WelcomeScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:47: error: cannot find symbol
startActivity(new Intent(getApplicationContext(), RegistrationScreen.class));
^
symbol: method startActivity(Intent)
location: class WelcomeScreen
/Users/AMTAGRWL/Downloads/Dropbox/GT:CLASSES/Spring 2015/CS 2340/git/TrueProjectUnicorn/ShoppingWithFriends/app/src/main/java/com/projectunicorn/shoppingwithfriends/WelcomeScreen.java:50: error: method does not override or implement a method from a supertype
#Override
^
36 errors
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJava'.
> 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
Total time: 2.692 secs
I have tried multiple existing posts regarding this but have failed to find a solution that works.
EDIT: My build.gradle file.
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.projectunicorn.shoppingwithfriends"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services:6.5.87'
compile ('com.android.support:appcompat-v7:21.0.3')
compile ('com.android.support:support-v4:21.0.+')
}
I'm using Android Studio 1.0.2 on OS X Yosemite.
Installing the library is not enough. You also need to add it to the list of dependencies of your project.
To do that, add this line to the dependencies section of your build.gradle:
dependencies {
...
compile ('com.android.support:appcompat-v7:21.0.3')
compile ('com.android.support:support-v4:21.0.3')
}
This was taken from the official docs:
v7 appcompat library
Note: This library depends on the v4 Support Library. If you are using Ant or Eclipse, make sure you include the v4 Support Library as part of this library's classpath.
So don't forgot to add both v4 and v7.
What versions do you choose when create project? (target, minimum, etc)
I change all to one version - API 21, it works for me.

Categories

Resources