Reputation: 1949
https://facebook.github.io/react-native/docs/getting-started.html
I was following this tutorial to get an Android app running on Windows. When running the react-native run-android
command, I get this error:
:app:mergeDebugResources AAPT out(2119206397) : No Delegate set : lost message:Done AAPT out(1004599865) : No Delegate set : lost message:Done AAPT out(126533033) : No Delegate set : lost message:Done AAPT out(520573141) : No Delegate set : lost message:Done AAPT out(2000135048) : No Delegate set : lost message:Done AAPT out(1888282095) : No Delegate set : lost message:Done AAPT out(100816428) : No Delegate set : lost message:Done AAPT out(323189884) : No Delegate set : lost message:Done AAPT out(1803421983) : No Delegate set : lost message:Done AAPT out(323189884) : No Delegate set : lost message:Done AAPT out(100816428) : No Delegate set : lost message:Crunching C:\Windows\System32\myapp\android\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.1\res\drawable-xxxhdpi\abc_btn_check_to_on_mtrl_015.png AAPT out(1004599865) : No Delegate set : lost message:Done
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Miguel\AppData\Local\Android\sdk2\build-tools\23.0.1\aapt.exe'' finished with non-zero exit value 1
Upvotes: 0
Views: 444
Reputation: 4748
I just came across this problem the hardway. This error will also occur if your project name contains special characters like -
app.json
{
"name": "some-database",
"displayName": "somw-database"
}
It will fail with the same error!
Upvotes: 0
Reputation: 1284
I had a similar problem , and after spending so much time and lots of searching about this issue the only trick worked for :
Android SDK Tool
(update it to latest version)Android SDK Platform-tools
(update it to latest version)Android SDK Build-tools
(update it to latest version)Android Support Repository
under Extra
folder (update it to latest version)Android API
as the installed Android SDK Build-tools
& Android SDK Platform-tools
version as shown in the figure Configure Required SDKsNote: Local Maven repository for Support Libraries which is listed as the SDK requirement in the official docs of React-native is now named as Android Support Repository in the SDK Manager .
Upvotes: 1
Reputation: 1949
After making sure that all of my packages were updated the error went away. I installed all of the build tools, sdk packages and platform tools that were available in the android-studio sdk manager. Make sure that everything is updated and this error should go away. Also make sure that you have a local.properties file in the project/android directory with a path to the sdk.
put this in your local.properties file.
sdk.dir=C\:\\Users\\Miguel\\AppData\\Local\\Android\\Sdk2
This is a great tutorial for this. https://www.youtube.com/watch?v=cnqyUnASuk8
Update: Make sure to install the IntelX86 system image if you want adb to connect to the emulator when building your project.
Upvotes: 0