mjwheatley / cordova-plugin-android-fingerprint-auth

A cordova plugin for fingerprint authentication using the hardware fingerprint scanner on devices running Android 6+
Apache License 2.0
168 stars 131 forks source link

FAILURE: Build failed with an exception. #48

Closed santosh532 closed 7 years ago

santosh532 commented 7 years ago

Getting the following error when including the fingerprint-auth plugin.


/officeWork/Mac/ionic app tirals/test/platforms/android/src/com/cordova/plugin/android/fingerprintauth/FingerprintAuth.java:399: error: method does not override or implement a method from a supertype

    @Override
    ^

/officeWork/Mac/ionic app tirals/test/platforms/android/src/com/cordova/plugin/android/fingerprintauth/FingerprintAuth.java:402: error: cannot find symbol

        super.onRequestPermissionResult(requestCode, permissions, grantResults);
             ^

  symbol: method onRequestPermissionResult(int,String[],int[])Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

2 errors

FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':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: 6.15 secs

/officeWork/Mac/ionic app tirals/test/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                    ^
Error code 1 for command: /officeWork/Mac/ionic app tirals/test/platforms/android/gradlew with args: cdvBuildDebug,-b,/officeWork/Mac/ionic app tirals/test/platforms/android/build.gradle,-Dorg.gradle.daemon=true

Error: /officeWork/Mac/ionic app tirals/test/platforms/android/cordova/build: Command failed with exit code 1

ionic info gives the following details


Your system information:

Cordova CLI: 6.4.0 
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.12
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.46
ios-deploy version: 1.7.0 
ios-sim version: 4.1.1 
OS: macOS Sierra
Node Version: v4.1.2
Xcode version: Xcode 7.3.1 Build version 7D1014

sudo cordova --version 6.4.0

also made sure that android SDK is updated android update sdk --no-ui --all --filter "extra-android-m2repository"

santosh532 commented 7 years ago

Fixed it after updating android SDK and accepting licence. android update sdk --no-ui --filter build-tools-24.0.0,android-24,extra-android-m2repository.