Could not find play-services-tasks-license.aar (com.google.android.gms:play-services-tasks-license:11.8.0)










9















error imagee



===========================================================================
I couldn't figure out the problem despite my research. please help me us. Where do I make a error?



I have shared all the information below. I tried all the methods but couldn't solve the problem.



build.gradle file ;



 // Top-level build file where you can add configuration options common to all sub-projects/modules.
def googlePlayServicesVersion = '11.8.0'

buildscript
repositories
jcenter()
mavenCentral()
maven
url 'https://maven.google.com/'
name 'Google'


dependencies
classpath 'com.android.tools.build:gradle:2.2.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files



def versionOverrides = [
"com.facebook.android:facebook-android-sdk": "4.22.1",
]

project(':react-native-fbsdk')
configurations.all
resolutionStrategy
force 'com.facebook.android:facebook-android-sdk:4.22.1'




allprojects
repositories
// Add jitpack repository (added by tipsi-stripe)
maven url "https://jitpack.io"
mavenLocal()
jcenter()
maven
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"

maven
url 'https://maven.google.com/'
name 'Google'


configurations.all
resolutionStrategy
// react-native-admob
force "com.google.android.gms:play-services-ads:$googlePlayServicesVersion"

// react-native-onesignal
force "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
force "com.google.android.gms:play-services-analytics:$googlePlayServicesVersion"
force "com.google.android.gms:play-services-location:$googlePlayServicesVersion"
force 'com.facebook.android:facebook-android-sdk:4.22.1'


resolutionStrategy.eachDependency DependencyResolveDetails details ->

def overrideVersion = versionOverrides[details.requested.group + ":" + details.requested.name]

if (overrideVersion != null && details.requested.version != overrideVersion)
println("********************************************************")
println("Overriding dependency $details.requested.group:$details.requested.name version $details.requested.version --> $overrideVersion")
details.useVersion overrideVersion
println("********************************************************")





subprojects
afterEvaluate
project -> if (project.hasProperty("android"))
android
compileSdkVersion 26
buildToolsVersion '26.0.2'






React-Native run-android error:



> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-onesignal'.
> Could not find play-services-tasks-license.aar (com.google.android.gms:play-services-tasks-license:11.8.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-tasks-license/11.8.0/play-services-tasks-license-11.8.0.aar









share|improve this question






















  • Iam using ionic v1.. Same error that occurs when i try to build an apk.

    – Manush Venkatesh
    Oct 29 '18 at 11:11






  • 1





    Curiously this started to happen 4 days ago. So I guess we are having the same problem

    – julianalimin
    Oct 29 '18 at 15:45















9















error imagee



===========================================================================
I couldn't figure out the problem despite my research. please help me us. Where do I make a error?



I have shared all the information below. I tried all the methods but couldn't solve the problem.



build.gradle file ;



 // Top-level build file where you can add configuration options common to all sub-projects/modules.
def googlePlayServicesVersion = '11.8.0'

buildscript
repositories
jcenter()
mavenCentral()
maven
url 'https://maven.google.com/'
name 'Google'


dependencies
classpath 'com.android.tools.build:gradle:2.2.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files



def versionOverrides = [
"com.facebook.android:facebook-android-sdk": "4.22.1",
]

project(':react-native-fbsdk')
configurations.all
resolutionStrategy
force 'com.facebook.android:facebook-android-sdk:4.22.1'




allprojects
repositories
// Add jitpack repository (added by tipsi-stripe)
maven url "https://jitpack.io"
mavenLocal()
jcenter()
maven
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"

maven
url 'https://maven.google.com/'
name 'Google'


configurations.all
resolutionStrategy
// react-native-admob
force "com.google.android.gms:play-services-ads:$googlePlayServicesVersion"

// react-native-onesignal
force "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
force "com.google.android.gms:play-services-analytics:$googlePlayServicesVersion"
force "com.google.android.gms:play-services-location:$googlePlayServicesVersion"
force 'com.facebook.android:facebook-android-sdk:4.22.1'


resolutionStrategy.eachDependency DependencyResolveDetails details ->

def overrideVersion = versionOverrides[details.requested.group + ":" + details.requested.name]

if (overrideVersion != null && details.requested.version != overrideVersion)
println("********************************************************")
println("Overriding dependency $details.requested.group:$details.requested.name version $details.requested.version --> $overrideVersion")
details.useVersion overrideVersion
println("********************************************************")





subprojects
afterEvaluate
project -> if (project.hasProperty("android"))
android
compileSdkVersion 26
buildToolsVersion '26.0.2'






React-Native run-android error:



> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-onesignal'.
> Could not find play-services-tasks-license.aar (com.google.android.gms:play-services-tasks-license:11.8.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-tasks-license/11.8.0/play-services-tasks-license-11.8.0.aar









share|improve this question






















  • Iam using ionic v1.. Same error that occurs when i try to build an apk.

    – Manush Venkatesh
    Oct 29 '18 at 11:11






  • 1





    Curiously this started to happen 4 days ago. So I guess we are having the same problem

    – julianalimin
    Oct 29 '18 at 15:45













9












9








9


1






error imagee



===========================================================================
I couldn't figure out the problem despite my research. please help me us. Where do I make a error?



I have shared all the information below. I tried all the methods but couldn't solve the problem.



build.gradle file ;



 // Top-level build file where you can add configuration options common to all sub-projects/modules.
def googlePlayServicesVersion = '11.8.0'

buildscript
repositories
jcenter()
mavenCentral()
maven
url 'https://maven.google.com/'
name 'Google'


dependencies
classpath 'com.android.tools.build:gradle:2.2.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files



def versionOverrides = [
"com.facebook.android:facebook-android-sdk": "4.22.1",
]

project(':react-native-fbsdk')
configurations.all
resolutionStrategy
force 'com.facebook.android:facebook-android-sdk:4.22.1'




allprojects
repositories
// Add jitpack repository (added by tipsi-stripe)
maven url "https://jitpack.io"
mavenLocal()
jcenter()
maven
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"

maven
url 'https://maven.google.com/'
name 'Google'


configurations.all
resolutionStrategy
// react-native-admob
force "com.google.android.gms:play-services-ads:$googlePlayServicesVersion"

// react-native-onesignal
force "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
force "com.google.android.gms:play-services-analytics:$googlePlayServicesVersion"
force "com.google.android.gms:play-services-location:$googlePlayServicesVersion"
force 'com.facebook.android:facebook-android-sdk:4.22.1'


resolutionStrategy.eachDependency DependencyResolveDetails details ->

def overrideVersion = versionOverrides[details.requested.group + ":" + details.requested.name]

if (overrideVersion != null && details.requested.version != overrideVersion)
println("********************************************************")
println("Overriding dependency $details.requested.group:$details.requested.name version $details.requested.version --> $overrideVersion")
details.useVersion overrideVersion
println("********************************************************")





subprojects
afterEvaluate
project -> if (project.hasProperty("android"))
android
compileSdkVersion 26
buildToolsVersion '26.0.2'






React-Native run-android error:



> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-onesignal'.
> Could not find play-services-tasks-license.aar (com.google.android.gms:play-services-tasks-license:11.8.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-tasks-license/11.8.0/play-services-tasks-license-11.8.0.aar









share|improve this question














error imagee



===========================================================================
I couldn't figure out the problem despite my research. please help me us. Where do I make a error?



I have shared all the information below. I tried all the methods but couldn't solve the problem.



build.gradle file ;



 // Top-level build file where you can add configuration options common to all sub-projects/modules.
def googlePlayServicesVersion = '11.8.0'

buildscript
repositories
jcenter()
mavenCentral()
maven
url 'https://maven.google.com/'
name 'Google'


dependencies
classpath 'com.android.tools.build:gradle:2.2.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files



def versionOverrides = [
"com.facebook.android:facebook-android-sdk": "4.22.1",
]

project(':react-native-fbsdk')
configurations.all
resolutionStrategy
force 'com.facebook.android:facebook-android-sdk:4.22.1'




allprojects
repositories
// Add jitpack repository (added by tipsi-stripe)
maven url "https://jitpack.io"
mavenLocal()
jcenter()
maven
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"

maven
url 'https://maven.google.com/'
name 'Google'


configurations.all
resolutionStrategy
// react-native-admob
force "com.google.android.gms:play-services-ads:$googlePlayServicesVersion"

// react-native-onesignal
force "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
force "com.google.android.gms:play-services-analytics:$googlePlayServicesVersion"
force "com.google.android.gms:play-services-location:$googlePlayServicesVersion"
force 'com.facebook.android:facebook-android-sdk:4.22.1'


resolutionStrategy.eachDependency DependencyResolveDetails details ->

def overrideVersion = versionOverrides[details.requested.group + ":" + details.requested.name]

if (overrideVersion != null && details.requested.version != overrideVersion)
println("********************************************************")
println("Overriding dependency $details.requested.group:$details.requested.name version $details.requested.version --> $overrideVersion")
details.useVersion overrideVersion
println("********************************************************")





subprojects
afterEvaluate
project -> if (project.hasProperty("android"))
android
compileSdkVersion 26
buildToolsVersion '26.0.2'






React-Native run-android error:



> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-onesignal'.
> Could not find play-services-tasks-license.aar (com.google.android.gms:play-services-tasks-license:11.8.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-tasks-license/11.8.0/play-services-tasks-license-11.8.0.aar






javascript android-studio react-native






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 25 '18 at 11:06









Hüseyin AkyüzHüseyin Akyüz

4613




4613












  • Iam using ionic v1.. Same error that occurs when i try to build an apk.

    – Manush Venkatesh
    Oct 29 '18 at 11:11






  • 1





    Curiously this started to happen 4 days ago. So I guess we are having the same problem

    – julianalimin
    Oct 29 '18 at 15:45

















  • Iam using ionic v1.. Same error that occurs when i try to build an apk.

    – Manush Venkatesh
    Oct 29 '18 at 11:11






  • 1





    Curiously this started to happen 4 days ago. So I guess we are having the same problem

    – julianalimin
    Oct 29 '18 at 15:45
















Iam using ionic v1.. Same error that occurs when i try to build an apk.

– Manush Venkatesh
Oct 29 '18 at 11:11





Iam using ionic v1.. Same error that occurs when i try to build an apk.

– Manush Venkatesh
Oct 29 '18 at 11:11




1




1





Curiously this started to happen 4 days ago. So I guess we are having the same problem

– julianalimin
Oct 29 '18 at 15:45





Curiously this started to happen 4 days ago. So I guess we are having the same problem

– julianalimin
Oct 29 '18 at 15:45












2 Answers
2






active

oldest

votes


















8














jcenter doesn't serve https://jcenter.bintray.com/com/google/android/gms/play-services-tasks-license/11.8.0/play-services-tasks-license-11.8.0.aar.



maven https://maven.google.com/ serves it.



Swap jcenter() with maven url "https://maven.google.com" and try again.



build.gradle



allprojects 
repositories
mavenLocal()
maven
url "https://maven.google.com"

jcenter()
maven
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"

configurations.all
resolutionStrategy
force 'com.facebook.android:facebook-android-sdk:4.31.0'
force 'com.google.android.gms:play-services-base:11.8.0'
force 'com.google.android.gms:play-services-maps:11.8.0'
force 'com.google.android.gms:play-services-gcm:11.8.0'
force 'com.google.android.gms:play-services-location:11.8.0'






I have succeeded.



Good luck.






share|improve this answer






























    0














    The error disappears, but now another error appears



    error: cannot access AbstractSafeParcelable
    if( remoteMessage.getNotification() != null){
    ^
    class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error

    FAILURE: Build failed with an exception.

    What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler error output for details.





    share|improve this answer






















      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52987790%2fcould-not-find-play-services-tasks-license-aar-com-google-android-gmsplay-serv%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      8














      jcenter doesn't serve https://jcenter.bintray.com/com/google/android/gms/play-services-tasks-license/11.8.0/play-services-tasks-license-11.8.0.aar.



      maven https://maven.google.com/ serves it.



      Swap jcenter() with maven url "https://maven.google.com" and try again.



      build.gradle



      allprojects 
      repositories
      mavenLocal()
      maven
      url "https://maven.google.com"

      jcenter()
      maven
      // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
      url "$rootDir/../node_modules/react-native/android"

      configurations.all
      resolutionStrategy
      force 'com.facebook.android:facebook-android-sdk:4.31.0'
      force 'com.google.android.gms:play-services-base:11.8.0'
      force 'com.google.android.gms:play-services-maps:11.8.0'
      force 'com.google.android.gms:play-services-gcm:11.8.0'
      force 'com.google.android.gms:play-services-location:11.8.0'






      I have succeeded.



      Good luck.






      share|improve this answer



























        8














        jcenter doesn't serve https://jcenter.bintray.com/com/google/android/gms/play-services-tasks-license/11.8.0/play-services-tasks-license-11.8.0.aar.



        maven https://maven.google.com/ serves it.



        Swap jcenter() with maven url "https://maven.google.com" and try again.



        build.gradle



        allprojects 
        repositories
        mavenLocal()
        maven
        url "https://maven.google.com"

        jcenter()
        maven
        // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
        url "$rootDir/../node_modules/react-native/android"

        configurations.all
        resolutionStrategy
        force 'com.facebook.android:facebook-android-sdk:4.31.0'
        force 'com.google.android.gms:play-services-base:11.8.0'
        force 'com.google.android.gms:play-services-maps:11.8.0'
        force 'com.google.android.gms:play-services-gcm:11.8.0'
        force 'com.google.android.gms:play-services-location:11.8.0'






        I have succeeded.



        Good luck.






        share|improve this answer

























          8












          8








          8







          jcenter doesn't serve https://jcenter.bintray.com/com/google/android/gms/play-services-tasks-license/11.8.0/play-services-tasks-license-11.8.0.aar.



          maven https://maven.google.com/ serves it.



          Swap jcenter() with maven url "https://maven.google.com" and try again.



          build.gradle



          allprojects 
          repositories
          mavenLocal()
          maven
          url "https://maven.google.com"

          jcenter()
          maven
          // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
          url "$rootDir/../node_modules/react-native/android"

          configurations.all
          resolutionStrategy
          force 'com.facebook.android:facebook-android-sdk:4.31.0'
          force 'com.google.android.gms:play-services-base:11.8.0'
          force 'com.google.android.gms:play-services-maps:11.8.0'
          force 'com.google.android.gms:play-services-gcm:11.8.0'
          force 'com.google.android.gms:play-services-location:11.8.0'






          I have succeeded.



          Good luck.






          share|improve this answer













          jcenter doesn't serve https://jcenter.bintray.com/com/google/android/gms/play-services-tasks-license/11.8.0/play-services-tasks-license-11.8.0.aar.



          maven https://maven.google.com/ serves it.



          Swap jcenter() with maven url "https://maven.google.com" and try again.



          build.gradle



          allprojects 
          repositories
          mavenLocal()
          maven
          url "https://maven.google.com"

          jcenter()
          maven
          // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
          url "$rootDir/../node_modules/react-native/android"

          configurations.all
          resolutionStrategy
          force 'com.facebook.android:facebook-android-sdk:4.31.0'
          force 'com.google.android.gms:play-services-base:11.8.0'
          force 'com.google.android.gms:play-services-maps:11.8.0'
          force 'com.google.android.gms:play-services-gcm:11.8.0'
          force 'com.google.android.gms:play-services-location:11.8.0'






          I have succeeded.



          Good luck.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 31 '18 at 9:57









          user10585162user10585162

          811




          811























              0














              The error disappears, but now another error appears



              error: cannot access AbstractSafeParcelable
              if( remoteMessage.getNotification() != null){
              ^
              class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found
              Note: Some input files use or override a deprecated API.
              Note: Recompile with -Xlint:deprecation for details.
              Note: Some input files use unchecked or unsafe operations.
              Note: Recompile with -Xlint:unchecked for details.
              1 error

              FAILURE: Build failed with an exception.

              What went wrong:
              Execution failed for task ':app:compileDebugJavaWithJavac'.
              > Compilation failed; see the compiler error output for details.





              share|improve this answer



























                0














                The error disappears, but now another error appears



                error: cannot access AbstractSafeParcelable
                if( remoteMessage.getNotification() != null){
                ^
                class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found
                Note: Some input files use or override a deprecated API.
                Note: Recompile with -Xlint:deprecation for details.
                Note: Some input files use unchecked or unsafe operations.
                Note: Recompile with -Xlint:unchecked for details.
                1 error

                FAILURE: Build failed with an exception.

                What went wrong:
                Execution failed for task ':app:compileDebugJavaWithJavac'.
                > Compilation failed; see the compiler error output for details.





                share|improve this answer

























                  0












                  0








                  0







                  The error disappears, but now another error appears



                  error: cannot access AbstractSafeParcelable
                  if( remoteMessage.getNotification() != null){
                  ^
                  class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found
                  Note: Some input files use or override a deprecated API.
                  Note: Recompile with -Xlint:deprecation for details.
                  Note: Some input files use unchecked or unsafe operations.
                  Note: Recompile with -Xlint:unchecked for details.
                  1 error

                  FAILURE: Build failed with an exception.

                  What went wrong:
                  Execution failed for task ':app:compileDebugJavaWithJavac'.
                  > Compilation failed; see the compiler error output for details.





                  share|improve this answer













                  The error disappears, but now another error appears



                  error: cannot access AbstractSafeParcelable
                  if( remoteMessage.getNotification() != null){
                  ^
                  class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found
                  Note: Some input files use or override a deprecated API.
                  Note: Recompile with -Xlint:deprecation for details.
                  Note: Some input files use unchecked or unsafe operations.
                  Note: Recompile with -Xlint:unchecked for details.
                  1 error

                  FAILURE: Build failed with an exception.

                  What went wrong:
                  Execution failed for task ':app:compileDebugJavaWithJavac'.
                  > Compilation failed; see the compiler error output for details.






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 13 '18 at 11:51









                  Borja AlonsoBorja Alonso

                  11




                  11



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52987790%2fcould-not-find-play-services-tasks-license-aar-com-google-android-gmsplay-serv%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Darth Vader #20

                      How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

                      Ondo