run :'$cordova build android 'in cordova project ,and i get issue.
:processDebugResourcesERROR: InFontFamilyFont, unable to find attribute android:fontVariationSettingsERROR: InFontFamilyFont, unable to find attribute android:ttcIndex FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':processDebugResources'.> com.android.ide.common.process.ProcessException: Failed to execute aapt* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILEDTotal time: 6.456 secs(node:8404) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:ע: ijЩ�����ļ�ʹ�û����ѹ�ʱ�� API��ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣ע: ijЩ�����ļ�ʹ�û����ѹ�ʱ�� API��ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣ERROR: InFontFamilyFont, unable to find attribute android:fontVariationSettingsERROR: In FontFamilyFont, unable to find attribute android:ttcIndex
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
at ChildProcess.whenDone (E:\distinct-app-doctor\src\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
(node:8404) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8404) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
fix bug:
edit the 'platforms/android/build.gradle' and add :
configurations.all {
resolutionStrategy {
force 'com.android.support:support-v4:27.1.0' }
}
those after dependencies