NativeScript / push-plugin

Contains the source code for the Push Plugin.
Apache License 2.0
123 stars 45 forks source link

Simple Usage Resulted in Android Build Failure #215

Closed anaszgh closed 6 years ago

anaszgh commented 6 years ago

TNS Version: 3.2.1 Platform: Android

I have followed the documentation but whenever i try to run tns build android

it resulted in the following error

Could not resolve all dependencies for configuration ':_F0F1F2F3F4DebugApkCopy'.
   > Could not find com.google.firebase:firebase-messaging:12.0.1.
     Required by:
         project :
   > Could not find com.google.firebase:firebase-core:12.0.1.
     Required by:
         project :

and here is my app.gradle file

dependencies {
    compile 'com.android.support:recyclerview-v7:+'
}
android {  
  defaultConfig {  
    generatedDensities = []
    applicationId = "com.foo.bar"  
  }  
  aaptOptions {  
    additionalParameters "--no-version-vectors"  
  }  
} 
NickIliev commented 6 years ago

@anaszgh I would advise using the latest version of the plugin with the latest version of nativeScript (tns-core-modules and tns-android). Apart from that try this solution.

tbozhikov commented 6 years ago

I'm closing this issue due to inactivity, feel free to reopen it if needed.