React Native 0.64.x - unable to resolve class com.android.build.OutputFile

See original GitHub issue

What’s going on?

Could not compile build file ‘XXXXXXXXXXX\android\app\build.gradle’.

startup failed: build file ‘XXXXXXXXXXX\android\app\build.gradle’: 3: unable to resolve class com.android.build.OutputFile @ line 3, column 1. import com.android.build.OutputFile

Steps to reproduce

  1. yarn android

ignite doctor results:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

8reactions
selindogacommented, Dec 3, 2021

where did you change it ? I cannot find com.android.tools.build:gradle:4.1.0

7reactions
tatva-denishcommented, May 8, 2021

I have fixed it by replacing com.android.tools.build:gradle:4.1.0 to com.android.tools.build:gradle:3.5.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build failed unable to resolve class com.android.build.output ...
I got a similar error. FAILURE: Build failed with an exception.
Read more >
Android – Build failed unable to resolve class com ... - iTecNote
I am running my application on Android with React-Native and its appear the next error : "build file 'C:\Users……..\android\app\build.gradle': 3: unable to ......
Read more >
unable to resolve class com.android.build.OutputFile-React ...
Coding example for the question unable to resolve class com.android.build.OutputFile-React Native.
Read more >
react native compilesdkversion is not specified. please add it ...
Hey Guys I have the folowing error when trying to build my app with gradle compileSdkVersion is not specified though I already declared...
Read more >
React Native Upgrade Helper
-56,7 +56,6 @@ untyped-type-import=warn ... -20,7 +20,7 @@ import com.android.build.OutputFile ... 26, * // whether to bundle JS and assets in debug mode ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found