I've just started learning android. I've build the sample app according to the training provided by the developer training on the android developer training guide. I've started with my own app but for some reason it gives me this error with all instances of R. when I try to clean the error remains, i've been through quite a few of the solutions provided to others, but none of them work for me.
heres the error message from the gradle:
Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.internal.LoggedErrorException: Failed to run command: C:\Program Files (x86)\Android\android-studio\sdk\build-tools\21.0.0\aapt.exe package -f --no-crunch -I C:\Program Files (x86)\Android\android-studio\sdk\platforms\android-21\android.jar -M C:\Users...Projects\android app\MyAppName\app\build\intermediates\manifests\debug\AndroidManifest.xml -S C:\Users...\Projects\android app\MyAppName\app\build\intermediates\res\debug -A C:\Users...\Projects\android app\MyAppName\app\build\intermediates\assets\debug -m -J C:\Users...\Projects\android app\MyAppName\app\build\generated\source\r\debug -F C:\Users...\Projects\android app\MyAppName\app\build\intermediates\libs\app-debug.ap_ --debug-mode --custom-package domain.MyAppName -0 apk --output-text-symbols C:\Users...\Projects\android app\MyAppName\app\build\intermediates\symbols\debug Error Code: -1073741819
Any help is appreciated.