WebsiteBeaver / CordovaCall

Cordova CallKit & ConnectionService plugin for iOS/Android that displays the native call UI for VOIP apps
MIT License
196 stars 91 forks source link

fail while build - cannot find symbol .setCapabilities(PhoneAccount.CAPABILITY_SELF_MANAGED) #27

Closed overmindx1 closed 6 years ago

overmindx1 commented 6 years ago

Install plugin is no problem, but build app is failed . android-minSdkVersion is setting to 23 , Android 6. How can I fix this ?

1520585551956

dmarcs commented 6 years ago

@overmindx1 Please upgrade to the latest Android SDK

D-Marc1 commented 6 years ago

In case it isn't clear, @dmarcs means upgrading in Android Studio. Also, the earliest cordova-android version you should have is 6.2.3, as stated here.

overmindx1 commented 6 years ago

Thank you all you guys for fast reply .

I updated my Android SDK and Cordova . but still get same situation .

I put some picture of my Android SDK and Cordova setting .

1 2 3 4

Am I miss some thing to fix this problem? Thanks .

dmarcs commented 6 years ago

@overmindx1 Open up your project in Android Studio. Then go to File -> Project Structure. Change the Compile Sdk Version to 26 or higher. As you can see, mine is set to 27.

android_sdk
overmindx1 commented 6 years ago

I create new Cordova App , using Android 7.0 , working fine now . Thank you 👍

D-Marc1 commented 6 years ago

I'm glad. Should work fine on Android 6 as well.