Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running on Capacitor #3

Open
kalepail opened this issue Jan 12, 2021 · 2 comments
Open

Error running on Capacitor #3

kalepail opened this issue Jan 12, 2021 · 2 comments

Comments

@kalepail
Copy link

First thanks for building this plugin, there aren't many SafetyNet plugins out there. I am getting an error though trying to run on Android via Capacitor.

SafetyNetHandler.java:5: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;

Seems likely to be a compatibility issue with an Android version. Any chance you could update the plugin?

@snj07
Copy link
Owner

snj07 commented Jan 13, 2021

This plugin has older google play services and other dependencies so it may not work with the latest version. I need to look into it. Which version of google play services and Android are you using?

@kalepail
Copy link
Author

kalepail commented Jan 13, 2021

I'll be honest I'm not super familiar with the Android side of things but I think this may be what you want. My variables.gradle file.

ext {
    minSdkVersion = 21
    compileSdkVersion = 29
    targetSdkVersion = 29
    androidxAppCompatVersion = '1.1.0'
    androidxCoreVersion =  '1.2.0'
    androidxMaterialVersion =  '1.1.0-rc02'
    androidxBrowserVersion =  '1.2.0'
    androidxLocalbroadcastmanagerVersion =  '1.0.0'
    androidxExifInterfaceVersion = '1.2.0'
    firebaseMessagingVersion =  '20.1.2'
    playServicesLocationVersion =  '17.0.0'
    junitVersion =  '4.12'
    androidxJunitVersion =  '1.1.1'
    androidxEspressoCoreVersion =  '3.2.0'
    cordovaAndroidVersion =  '7.0.0'
}

I'm using Ionic's Capacitor to build and generate the project if that's of any use. Thanks for your help with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants