360SDN.COM

首页/Ionic/列表

执行ionic cordova build命令报- unable to find attribute android:fontVariationSet

来源:  2018-04-10 09:52:48    评论:0点击:

(node:8612) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex

在build.grade文件中添加即可:

    configurations.all {  
        resolutionStrategy {  
            force 'com.android.support:support-v4:27.1.0'  
        }  
    } 





详细解决方案见原文链接:

https://stackoverflow.com/questions/49162538/cordova-build-android-unable-to-find-attribute-androidfontvariationsettings-a


cordova build --release --stacktrace完整的编译信息:



ANDROID_HOME=E:\book\android\android-sdks
JAVA_HOME=D:\Java\jdk1.8.0_65
Subproject Path: CordovaLib
null
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_9qwyvxq406ps575n3570jze9m.run(D:\project\vueproject\ionic\yun\yunApp\platforms\android\build.gradle:147)
org.xwalk:xwalk_core_library:23+
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
Download https://maven.google.com/com/android/support/support-v4/27.1.0/support-v4-27.1.0.pom
Download https://maven.google.com/com/android/support/support-compat/27.1.0/support-compat-27.1.0.pom
Download https://maven.google.com/com/android/support/support-media-compat/27.1.0/support-media-compat-27.1.0.pom
Download https://maven.google.com/com/android/support/support-core-utils/27.1.0/support-core-utils-27.1.0.pom
Download https://maven.google.com/com/android/support/support-core-ui/27.1.0/support-core-ui-27.1.0.pom
Download https://maven.google.com/com/android/support/support-fragment/27.1.0/support-fragment-27.1.0.pom
Download https://maven.google.com/com/android/support/support-annotations/27.1.0/support-annotations-27.1.0.pom
Download https://maven.google.com/com/android/support/support-annotations/27.1.0/support-annotations-27.1.0.jar
Download https://maven.google.com/com/android/support/support-compat/27.1.0/support-compat-27.1.0.aar
Download https://maven.google.com/com/android/support/support-media-compat/27.1.0/support-media-compat-27.1.0.aar
Download https://maven.google.com/com/android/support/support-core-utils/27.1.0/support-core-utils-27.1.0.aar
Download https://maven.google.com/com/android/support/support-core-ui/27.1.0/support-core-ui-27.1.0.aar
Download https://maven.google.com/com/android/support/support-fragment/27.1.0/support-fragment-27.1.0.aar
Download https://maven.google.com/com/android/support/support-v4/27.1.0/support-v4-27.1.0.aar
:preBuild UP-TO-DATE
:preArmv7ReleaseBuild UP-TO-DATE
:checkArmv7ReleaseManifest
:preArmv7DebugBuild UP-TO-DATE
:preX86DebugBuild UP-TO-DATE
:preX86ReleaseBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint UP-TO-DATE
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl UP-TO-DATE
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseShaders UP-TO-DATE
:CordovaLib:compileReleaseShaders UP-TO-DATE
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles UP-TO-DATE
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:compileReleaseRenderscript UP-TO-DATE
:CordovaLib:generateReleaseResValues UP-TO-DATE
:CordovaLib:generateReleaseResources UP-TO-DATE
:CordovaLib:packageReleaseResources UP-TO-DATE
:CordovaLib:processReleaseManifest UP-TO-DATE
:CordovaLib:generateReleaseBuildConfig UP-TO-DATE
:CordovaLib:processReleaseResources UP-TO-DATE
:CordovaLib:generateReleaseSources UP-TO-DATE
:CordovaLib:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:compileReleaseJavaWithJavac UP-TO-DATE
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:CordovaLib:mergeReleaseJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:CordovaLib:bundleRelease UP-TO-DATE
:prepareAndroidArchCoreRuntime110Library UP-TO-DATE
:prepareAndroidArchLifecycleLivedataCore110Library UP-TO-DATE
:prepareAndroidArchLifecycleRuntime110Library UP-TO-DATE
:prepareAndroidArchLifecycleViewmodel110Library UP-TO-DATE
:prepareComAndroidSupportSupportCompat2710Library
:prepareComAndroidSupportSupportCoreUi2710Library
:prepareComAndroidSupportSupportCoreUtils2710Library
:prepareComAndroidSupportSupportFragment2710Library
:prepareComAndroidSupportSupportMediaCompat2710Library
:prepareComAndroidSupportSupportV42710Library
:prepareOrgApacheCordovaCordovaLib630ReleaseLibrary UP-TO-DATE
:prepareOrgXwalkXwalk_core_library23535894Library UP-TO-DATE
:prepareArmv7ReleaseDependencies
:compileArmv7ReleaseAidl
:compileArmv7ReleaseRenderscript UP-TO-DATE
:generateArmv7ReleaseBuildConfig UP-TO-DATE
:mergeArmv7ReleaseShaders UP-TO-DATE
:compileArmv7ReleaseShaders UP-TO-DATE
:generateArmv7ReleaseAssets UP-TO-DATE
:mergeArmv7ReleaseAssets
:createXwalkCommandLineFileArmv7Release
:generateArmv7ReleaseResValues UP-TO-DATE
:generateArmv7ReleaseResources UP-TO-DATE
:mergeArmv7ReleaseResources
:processArmv7ReleaseManifest
:processArmv7ReleaseResources
:generateArmv7ReleaseSources
:incrementalArmv7ReleaseJavaCompilationSafeguard
:compileArmv7ReleaseJavaWithJavac
:compileArmv7ReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

:compileArmv7ReleaseNdk UP-TO-DATE
:compileArmv7ReleaseSources
:lintVitalArmv7Release
:transformClassesWithDexForArmv7Release
:mergeArmv7ReleaseJniLibFolders
:transformNative_libsWithMergeJniLibsForArmv7Release
:processArmv7ReleaseJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForArmv7Release
:packageArmv7Release
:assembleArmv7Release
:checkX86ReleaseManifest
:prepareX86ReleaseDependencies
:compileX86ReleaseAidl
:compileX86ReleaseRenderscript
:generateX86ReleaseBuildConfig
:mergeX86ReleaseShaders
:compileX86ReleaseShaders
:generateX86ReleaseAssets
:mergeX86ReleaseAssets
:createXwalkCommandLineFileX86Release
:generateX86ReleaseResValues
:generateX86ReleaseResources
:mergeX86ReleaseResources
:processX86ReleaseManifest
:processX86ReleaseResources
:generateX86ReleaseSources
:incrementalX86ReleaseJavaCompilationSafeguard
:compileX86ReleaseJavaWithJavac
:compileX86ReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

:compileX86ReleaseNdk UP-TO-DATE
:compileX86ReleaseSources
:lintVitalX86Release
:transformClassesWithDexForX86Release
:mergeX86ReleaseJniLibFolders
:transformNative_libsWithMergeJniLibsForX86Release
:processX86ReleaseJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForX86Release
:packageX86Release
:assembleX86Release
:assembleRelease
:cdvBuildRelease

BUILD SUCCESSFUL

Total time: 2 mins 14.873 secs
Built the following apk(s):
        D:/project/vueproject/ionic/yun/yunApp/platforms/android/build/outputs/apk/android-armv7-release-unsigned.apk
        D:/project/vueproject/ionic/yun/yunApp/platforms/android/build/outputs/apk/android-x86-release-unsigned.apk
Crosswalk info:
        After much discussion and analysis of the market,
        we have decided to discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20,
        so the minSdkVersion of Cordova project is configured to 16 by default.

 

为您推荐

友情链接 |九搜汽车网 |手机ok生活信息网|ok生活信息网|ok微生活
 Powered by www.360SDN.COM   京ICP备11022651号-4 © 2012-2016 版权