capacitor-oauth2: Error Java Compiler
Hello I have the following problem: error: cannot access AppCompatActivity class file for android.support.v7.app.AppCompatActivity not found File: OAuth2ClientPlugin.java
Ionic:
ionic (Ionic CLI) : 4.12.0 Ionic Framework : @ionic/angular 4.3.0 @angular-devkit/build-angular : 0.13.8 @angular-devkit/schematics : 7.1.4 @angular/cli : 7.1.4 @ionic/angular-toolkit : 1.2.3
Capacitor:
capacitor (Capacitor CLI) : 1.0.0-beta.19 @capacitor/core : 1.0.0-beta.19
Cordova:
cordova (Cordova CLI) : not installed Cordova Platforms : not available Cordova Plugins : not available
System:
NodeJS : v10.15.3 (C:\Program Files\nodejs\node.exe) npm : 6.4.1 OS : Windows 10
More info: Wrong 1st argument type. Found: ‘android.support.v7.app.AppCompatActivity’, required: ‘android.app.Activity’
In this line: handler.getAccessToken(getActivity(), call, new AccessTokenCallback()
Thanks
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 20 (6 by maintainers)
I’m currently migrating all my plugins to the new way how to write Gradle plugins, which doesnot require
implementation 'ionic-team:capacitor-android:1.0.0-beta.19'in the plugin.It seems so far that this dependency is the main cause of the java errors we get.
I have the same problem
Same for me. Seems like there are some kind of dependencies or something else. But what exactly need to use in dependencies of build.gradle file?