question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Execution failed for task ':app:compileDebugAidl' during compilation

See original GitHub issue

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

(There is a bug in your info too)

Environment:
  OS:  Linux 4.10
  Node:  8.6.0
  Yarn:  Not Found
  npm:  5.4.2
  Watchman:  Not Found
Error: unable to print environment info
{ Error: not found: xcodebuild
    at getNotFoundError (/home/jhacked/Github/asd/node_modules/which/which.js:13:12)
    at Function.whichSync [as sync] (/home/jhacked/Github/asd/node_modules/which/which.js:134:9)
    at getXcodeVersion (/home/jhacked/Github/asd/node_modules/envinfo/envinfo.js:17:25)
    at Object.module.exports.print (/home/jhacked/Github/asd/node_modules/envinfo/envinfo.js:136:28)
    at Object.info (/home/jhacked/Github/asd/node_modules/react-native/local-cli/info/info.js:17:13)
    at Promise.resolve.then (/home/jhacked/Github/asd/node_modules/react-native/local-cli/cliEntry.js:109:26)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
    at Function.Module.runMain (module.js:667:11)
    at startup (bootstrap_node.js:187:16) code: 'ENOENT' }

Steps to Reproduce

  1. Create a new project wiht react-native init temp
  2. cd temp
  3. npm install
  4. react-native run-android (and here I get the error)

Actual Behavior

I’ve got an Execution failed for task ':app:compileDebugAidl'

Actually I found this issue where the guy had the same problem: https://github.com/facebook/react-native/issues/14733 and I managed to solve it like he says, but I’m not comfortable repeating all those steps for every project I have.

I’d like to know why this happens, what exactly is missing and how to install this missing piece in order to happily compile my apks

Thank you very much for you work

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
giacomocerquonecommented, Feb 22, 2018

@DanielArthurUK I’ve always used the react-native boilerplate and upgrading it with react-native-git-upgrade this problem disappeared

0reactions
giacomocerquonecommented, Mar 8, 2018

@DanielArthurUK I correct myself, after upgrading it in a new project it’s actually not working. Someone from above can explain us something?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Execution failed for task ':app:compileDebugAidl': aidl is ...
This bug happens when the versions of SDK, Build Tools and Gradle Plugins doesn't match (in terms of compatibility). The solution is to...
Read more >
Execution failed for Task :app:compileDebugAidl FAILED
Hi, When I try to launch or package my project (targeting android and occulus quest) I get this error log.
Read more >
Fix - Execution failed for task ':app:compileDebugAidl': aidl is ...
This video shows a Fix to a common error in Android development studio and the fix is simple... Execution failed for task ......
Read more >
Error:Execution failed for task ':app:compileDebugAidl'
Hi! I am trying to develop in Android Studio a android aplicattion to get data from barcode with the emdk, follwing this tutorial:...
Read more >
Execution failed for task ':app:compileDebugAidl': aidl is ...
This bug happens when the versions of SDK, Build Tools and Gradle Plugins doesn't match (in terms of compatibility). The solution is to...
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