gurisko / cordova-plugin-accountkit

AccountKit Plugin for Apache Cordova which allows you to add passwordless email and SMS authentication to your app
MIT License
34 stars 42 forks source link

Failed Phonegap Build #44

Closed The-Don-Himself closed 6 years ago

The-Don-Himself commented 6 years ago

Building using phonegap build with v 1.4.0 now fails as shown below

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'project'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
   > Could not find com.google.android.gms:play-services-auth-api-phone:11.8.0.
     Required by:
         project : > com.facebook.android:account-kit-sdk:4.31.0
   > Could not find com.google.android.gms:play-services-auth:11.8.0.
     Required by:
         project : > com.facebook.android:account-kit-sdk:4.31.0

Downgrading back down to v1.3.0 in config.xml makes the build succeed.

    <plugin name="cordova-plugin-accountkit" spec="1.3.0">
        <variable name="APP_ID" value="123" />
        <variable name="APP_NAME" value="Awesome App" />
        <variable name="CLIENT_TOKEN" value="123abC" />
        <variable name="API_VERSION" value="v1.3" />
    </plugin>
The-Don-Himself commented 6 years ago

Updating phonegap-cli to latest version solves this.

<preference name="phonegap-version" value="cli-8.0.0" />