It happened to me from a day to another that this error appeared after the cordova build command. It seemes an error caused by the recent release of SDK 27 P preview. here the full error
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':processDebugResources'. com.android.ide.common.process.ProcessException: Failed to execute aaptTry: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Error: cmd: Command failed with exit code 1 Error output: C:\Users...\platforms\android\build\intermediates\res\merged\debug\values-v28\values-v28.xml:7:41-73: AAPT: No resource found that matches the given name (at 'dialog CornerRadius' with value '?android:attr/dialogCornerRadius').
Failed to generate resource table for split '' C:\Users...\platforms\android\build\intermediates\res\merged\debug\values-v28\values-v28.xml:7: error: Error: No resource found that matches the given name (at 'dial ogCornerRadius' with value '?android:attr/dialogCornerRadius').
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':processDebugResources'. com.android.ide.common.process.ProcessException: Failed to execute aapt
I've found here a way to solve the problem but it doesn't work 100% because the build ends without errors but I'm not able to install the apk on my phone because a device with apiSDK 27 is required. The only way to work it seems to be setting the Compile SDK Version to 27+ P preview otherwise that error is shown.
Does someone know a workaround or a way to fix it (either or directly on cordova or editing the manifest.xml is fine anyway)?