Realm messes with Android data binding - android

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 }
}

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.

Library module not working in my projects app module 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

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

Cordova build error - failed with exit code 1 - ant/build.xml

I could build and run my app on a mobile device easily with cordova run android. After I messed around with building a release version using --release everything started to go wrong (I did successfully get a release version). Now everything seems to be messed up - I cannot build my app successfully at all.
My path/cordova/ant:
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/imac/android-sdks/platform-tools/:/Users/imac/android-sdks/tools:/Users/imac/android-sdks/platform-tools
$ cordova -v
5.0.0
$ ant -version
Apache Ant(TM) version 1.9.4 compiled on April 29 2014
Errors start here already: (I removed many lines in between since most seem to be similar)
-compile:
[javac] Compiling 17 source files to /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/ant-build/classes
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaClientCertRequest.java:25: cannot find symbol
[javac] symbol : class ClientCertRequest
[javac] location: package android.webkit
[javac] import android.webkit.ClientCertRequest;
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaClientCertRequest.java:32: cannot find symbol
[javac] symbol : class ClientCertRequest
[javac] location: class org.apache.cordova.CordovaClientCertRequest
[javac] private final ClientCertRequest request;
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaClientCertRequest.java:34: cannot find symbol
[javac] symbol : class ClientCertRequest
[javac] location: class org.apache.cordova.CordovaClientCertRequest
[javac] public CordovaClientCertRequest(ClientCertRequest request) {
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:47: interface expected here
[javac] public class CordovaWebViewImpl implements CordovaWebView {
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemExposedJsApi.java:24: org.apache.cordova.ExposedJsApi is not public in org.apache.cordova; cannot be accessed from outside package
[javac] import org.apache.cordova.ExposedJsApi;
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemExposedJsApi.java:32: cannot find symbol
[javac] symbol: class ExposedJsApi
[javac] class SystemExposedJsApi implements ExposedJsApi {
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebChromeClient.java:251: cannot find symbol
[javac] symbol : class FileChooserParams
[javac] location: class android.webkit.WebChromeClient
[javac] public boolean onShowFileChooser(WebView webView, final ValueCallback<Uri[]> filePathsCallback, final WebChromeClient.FileChooserParams fileChooserParams) {
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewClient.java:29: cannot find symbol
[javac] symbol : class ClientCertRequest
[javac] location: package android.webkit
[javac] import android.webkit.ClientCertRequest;
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewClient.java:116: cannot find symbol
[javac] symbol : class ClientCertRequest
[javac] location: class org.apache.cordova.engine.SystemWebViewClient
[javac] public void onReceivedClientCertRequest (WebView view, ClientCertRequest request)
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebChromeClient.java:249: cannot find symbol
[javac] symbol : variable LOLLIPOP
[javac] location: class android.os.Build.VERSION_CODES
[javac] #TargetApi(Build.VERSION_CODES.LOLLIPOP)
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaInterfaceImpl.java:141: cannot find symbol
[javac] symbol : method getServiceName()
[javac] location: class org.apache.cordova.CordovaPlugin
[javac] String serviceName = activityResultCallback.getServiceName();
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:102: cannot find symbol
[javac] symbol : constructor PluginManager(org.apache.cordova.CordovaWebViewImpl,org.apache.cordova.CordovaInterface,java.util.List<org.apache.cordova.PluginEntry>)
[javac] location: class org.apache.cordova.PluginManager
[javac] pluginManager = new PluginManager(this, this.cordova, pluginEntries);
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:104: cannot find symbol
[javac] symbol : constructor NativeToJsMessageQueue()
[javac] location: class org.apache.cordova.NativeToJsMessageQueue
[javac] nativeToJsMessageQueue = new NativeToJsMessageQueue();
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:105: cannot find symbol
[javac] symbol : class NoOpBridgeMode
[javac] location: class org.apache.cordova.NativeToJsMessageQueue
[javac] nativeToJsMessageQueue.addBridgeMode(new NativeToJsMessageQueue.NoOpBridgeMode());
[javac] ^
symbol
[javac] symbol : method shouldOpenExternalUrl(java.lang.String)
[javac] location: class org.apache.cordova.PluginManager
[javac] if (!pluginManager.shouldOpenExternalUrl(url)) {
[javac] ^
content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:314: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:318: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:322: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:326: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:330: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:334: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:351: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:369: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:374: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:380: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:385: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:391: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:396: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:401: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:407: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:412: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:418: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:424: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:439: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:458: cannot find symbol
[javac] symbol : method onStart()
[javac] location: class org.apache.cordova.PluginManager
[javac] pluginManager.onStart();
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:453: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:465: cannot find symbol
[javac] symbol : method onStop()
[javac] location: class org.apache.cordova.PluginManager
[javac] pluginManager.onStop();
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:460: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:467: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:599: cannot find symbol
[javac] symbol : method shouldAllowNavigation(java.lang.String)
[javac] location: class org.apache.cordova.PluginManager
[javac] } else if (pluginManager.shouldAllowNavigation(url)) {
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java:601: cannot find symbol
[javac] symbol : method shouldOpenExternalUrl(java.lang.String)
[javac] location: class org.apache.cordova.PluginManager
[javac] } else if (pluginManager.shouldOpenExternalUrl(url)) {
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CoreAndroid.java:89: cannot find symbol
[javac] symbol : method getPluginManager()
[javac] location: class org.apache.cordova.CordovaWebView
[javac] webView.getPluginManager().postMessage("spinner", "stop");
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CoreAndroid.java:266: cannot find symbol
[javac] symbol : method getPluginManager()
[javac] location: class org.apache.cordova.CordovaWebView
[javac] this.webView.getPluginManager().postMessage("exit", null);
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CoreAndroid.java:290: cannot find symbol
[javac] symbol : method getPluginManager()
[javac] location: class org.apache.cordova.CordovaWebView
[javac] webView.getPluginManager().postMessage("telephone", "ringing");
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CoreAndroid.java:294: cannot find symbol
[javac] symbol : method getPluginManager()
[javac] location: class org.apache.cordova.CordovaWebView
[javac] webView.getPluginManager().postMessage("telephone", "offhook");
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/CoreAndroid.java:298: cannot find symbol
[javac] symbol : method getPluginManager()
[javac] location: class org.apache.cordova.CordovaWebView
[javac] webView.getPluginManager().postMessage("telephone", "idle");
[javac] ^
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemCookieManager.java:59: cannot find symbol
[javac] symbol : variable LOLLIPOP
[javac] location: class android.os.Build.VERSION_CODES
[javac] if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemCookieManager.java:60: cannot find symbol
[javac] symbol : method flush()
[javac] location: class android.webkit.CookieManager
[javac] cookieManager.flush();
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebChromeClient.java:257: cannot find symbol
[javac] symbol : variable FileChooserParams
[javac] location: class android.webkit.WebChromeClient
[javac] Uri[] result = WebChromeClient.FileChooserParams.parseResult(resultCode, intent);
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebChromeClient.java:250: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewEngine.java:99: org.apache.cordova.NativeToJsMessageQueue.OnlineEventsBridgeMode has private access in org.apache.cordova.NativeToJsMessageQueue
[javac] nativeToJsMessageQueue.addBridgeMode(new NativeToJsMessageQueue.OnlineEventsBridgeMode(new NativeToJsMessageQueue.OnlineEventsBridgeMode.OnlineEventsBridgeModeDelegate() {
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewEngine.java:99: org.apache.cordova.NativeToJsMessageQueue.OnlineEventsBridgeMode has private access in org.apache.cordova.NativeToJsMessageQueue
[javac] nativeToJsMessageQueue.addBridgeMode(new NativeToJsMessageQueue.OnlineEventsBridgeMode(new NativeToJsMessageQueue.OnlineEventsBridgeMode.OnlineEventsBridgeModeDelegate() {
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewClient.java:98: cannot find symbol
[javac] symbol : method onReceivedHttpAuthRequest(<nulltype>,org.apache.cordova.CordovaHttpAuthHandler,java.lang.String,java.lang.String)
[javac] location: class org.apache.cordova.PluginManager
[javac] if (pluginManager != null && pluginManager.onReceivedHttpAuthRequest(null, new CordovaHttpAuthHandler(handler), host, realm)) {
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewClient.java:121: cannot find symbol
[javac] symbol : method onReceivedClientCertRequest(<nulltype>,org.apache.cordova.CordovaClientCertRequest)
[javac] location: class org.apache.cordova.PluginManager
[javac] if (pluginManager != null && pluginManager.onReceivedClientCertRequest(null, new CordovaClientCertRequest(request))) {
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewClient.java:114: method does not override or implement a method from a supertype
[javac] #Override
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewClient.java:144: reset(java.lang.String) in org.apache.cordova.CordovaBridge cannot be applied to ()
[javac] parentEngine.bridge.reset();
[javac] ^
[javac] /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewClient.java:325: cannot find symbol
[javac] symbol : method shouldAllowRequest(java.lang.String)
[javac] location: class org.apache.cordova.PluginManager
[javac] if (!parentEngine.pluginManager.shouldAllowRequest(url)) {
[javac] ^
[javac] Note: /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebChromeClient.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 73 errors
BUILD FAILED
/Users/imac/android-sdks/tools/ant/build.xml:601: The following error occurred while executing this line:
/Users/imac/android-sdks/tools/ant/build.xml:720: The following error occurred while executing this line:
/Users/imac/android-sdks/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 1 second
/Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: ant with args: debug,-f,/Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
ERROR building one of the platforms: Error: /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: /Applications/MAMP/htdocs/mesar/wp-content/themes/mesar/mobile/platforms/android/cordova/build: Command failed with exit code 1
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
Any help appreciated!

Categories

Resources