0

problem was found with the configuration of task ':app:processDebugResources' (type 'LinkApplicationAndroidResourcesTask').

  • In plugin 'com.android.internal.version-check' type 'com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask' property 'androidJarInput.androidJar' specifies file 'C:\Users\NISHANT\AppData\Local\Android\sdk\platforms\android-31\android.jar' which doesn't exist.

    Reason: An input file was expected to be present but it doesn't exist.

8
  • is this the whole error? Commented Aug 7, 2022 at 20:49
  • @waqadarshad yes its the whole error i am facing while debugging Commented Aug 8, 2022 at 17:59
  • try downloading android 31 from the Settings -> Appearance & Behavior -> System Settings -> Android SDK -> select SDK Platforms and check Android 12.0 and click apply and let it download and install and then try restarting Android studio and/or the laptop/PC if required and then try again. If this doesn't work out, please let me know. Commented Aug 8, 2022 at 21:14
  • Edit: If this doesn't work out, try downloading and adding this to the designated address: github.com/AndroidSDKSources/android-sdk-sources-list/blob/… Commented Aug 8, 2022 at 21:26
  • if any of these works out, please let me know and I'll add it as an answer. Thanks Commented Aug 8, 2022 at 21:26

1 Answer 1

1

Solution 1: Try downloading android 31 from the Settings -> Appearance & Behavior -> System Settings -> Android SDK -> select SDK Platforms and check Android 12.0 and click apply and let it download and install and then try restarting Android studio and/or the laptop/PC if required and then try again.

Solution 2: If Solution 1 doesn't work out, try downloading and adding API 31 android.jar to the designated address: (C:\Users\NISHANT\AppData\Local\Android\sdk\platforms\android-31)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.