# Error could not get resource while running ionic cordova build android

**URL:** <https://forum.ionicframework.com/t/error-could-not-get-resource-while-running-ionic-cordova-build-android/161200>\
**Category:** ionic-v3\
**Created:** [April 9, 2019, 4:00pm UTC](https://forum.ionicframework.com/t/error-could-not-get-resource-while-running-ionic-cordova-build-android/161200 "2019-04-09T16:00:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sedar](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@sedar](https://forum.ionicframework.com/u/sedar)\
**Post date:** [April 9, 2019, 4:00pm UTC](https://forum.ionicframework.com/t/error-could-not-get-resource-while-running-ionic-cordova-build-android/161200/1 "2019-04-09T16:00:14Z")

</div>

````auto
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:3.0.1.
     Required by:
         project :
      > Could not resolve com.android.tools.build:gradle:3.0.1.
         > Could not get resource 'https://maven.google.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'.
            > Could not GET 'https://maven.google.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      > Could not resolve com.android.tools.build:gradle:3.0.1.
         > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 20s```
````

---

<div class="post-metadata">

**Author:** ![Youtch](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/youtch/32/132853_2.png) [@Youtch](https://forum.ionicframework.com/u/Youtch)\
**Post date:** [April 11, 2019, 9:44am UTC](https://forum.ionicframework.com/t/error-could-not-get-resource-while-running-ionic-cordova-build-android/161200/2 "2019-04-11T09:44:14Z")

</div>

You can try to reinstall this platform by the way :

```auto
$ionic cordova platform rm android

```

And later :

```auto
$ionic cordova platform add android

```

Please keep me informed.

---

<div class="post-metadata">

**Author:** ![sedar](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@sedar](https://forum.ionicframework.com/u/sedar)\
**Post date:** [April 11, 2019, 1:39pm UTC](https://forum.ionicframework.com/t/error-could-not-get-resource-while-running-ionic-cordova-build-android/161200/3 "2019-04-11T13:39:34Z")

</div>

@Youtch I tried it already.  
i am using sdk of android studio. few days ago Android studio got update. After that sevral gradle problem was showing . I upgrrade to latest gradle now this error happens

---

<div class="post-metadata">

**Author:** ![Lilian131](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/lilian131/32/111942_2.png) [@Lilian131](https://forum.ionicframework.com/u/Lilian131)\
**Post date:** [July 15, 2019, 11:09am UTC](https://forum.ionicframework.com/t/error-could-not-get-resource-while-running-ionic-cordova-build-android/161200/4 "2019-07-15T11:09:06Z")

</div>

hi @sedar did you resolve it ?
