0

Gradle sync failed: Could not HEAD 'jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/…'. Received status code 403 from server: Forbidden

I cannot able to run Application in Android Studio.

Please click this for Image

Below is the Manifest file

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.XX.XX">

    <uses-permission android:name="android.permission.INTERNET"/>
    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        tools:node="merge"
        android:theme="@style/AppTheme">
        <activity
            android:name=".PrinterActivity"
            android:label="@string/app_name"
            android:theme="@style/AppTheme.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".PrinterWebViewActivity"/>
    </application>

</manifest>

After "Sync Project with Gradle Files" below exception coming Gradle sync failed: Could not HEAD 'jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/…'. Received status code 403 from server: Forbidden

I have tried to check online but couldn't find solution.Please help me on this.Thanks in Advance

Naveen
  • 481
  • 2
  • 6
  • 23

2 Answers2

0

First thing, To run any module or application it should be visible in an app or run module section where we generally see the app module,

So there are lots of reasons why module not visible in that section which is bellow

  • First code run configuration not properly visible,
  • Another one is problem in the build
  • Also maybe problem in Gradle file
  • If the code is copied from another place and you are synching with local Gradle then may be problem
  • May be module not defined in settings.gradle file

What we can do?

  • First check settings.gradle the file is module defined in or included in file bellow include ':app' if yes then check configuration section then after check above section one by one.
  • Also if any catching related problem then just select Invalidate Caches/Restart from the file menu and try to rebuild.
Dhaval Solanki
  • 4,589
  • 1
  • 23
  • 39
-1

try Build - > clean project after project cleanded again Build - > rebuild project

if this does not work than try File - > cache and restart

Kiran Patel
  • 98
  • 3
  • 12