2018년 4월 27일 금요일

cordova build 중 plugin 설치 후 build not found 에러 날 경우

1. cordova : 7.0.0
2. plugin : cordova-plugin-crosswalk-webview 2.4.0 "Crosswalk WebView Engine"
3. 해결법 :
   - cordova plugin add cordova-android-support-gradle-release
    - config.xml 
       <plugin name="cordova-android-support-gradle-release" spec="1.3.0">
<variable name="ANDROID_SUPPORT_VERSION" value="27.+" />  </plugin> 

4. 출처 :
   https://stackoverflow.com/questions/49208772/error-resource-androidattr-fontvariationsettings-not-found

5. 에러내용 (path 변경 및 일부내용) :
   C:\xxx\.gradle\caches\transforms-1\files-1.1\xwalk_core_library-23.53.589.4.aar\b3314598d439688991186787777ac81f\res\values\dimens_03.xml:14:5-51: AAPT: error: resource android:attr/fontVariationSettings not found.

C:\xxx\.gradle\caches\transforms-1\files-1.1\xwalk_core_library-23.53.589.4.aar\b3314598d439688991186787777ac81f\res\values\dimens_03.xml:14:5-51: AAPT: error: resource android:attr/ttcIndex not found.

C:\xxx\platforms\android\app\build\intermediates\incremental\mergeArm64DebugResources\merged.dir\values\values.xml:99: error: resource android:attr/fontVariationSettings not found.
C:\xxx\platforms\android\app\build\intermediates\incremental\mergeArm64DebugResources\merged.dir\values\values.xml:99: error: resource android:attr/ttcIndex not found.
error: failed linking references.

Failed to execute aapt
com.android.ide.common.process.ProcessException: Failed to execute aapt
...