美文网首页
Android 日常错误记录

Android 日常错误记录

作者: 袁刚 | 来源:发表于2019-05-24 10:26 被阅读0次

    1.Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0

    Android resource linking failed
    Output:  D:\WorkSpace\Flutter\LearnFlutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:87: error: resource android:attr/fontVariationSettings not found.
    D:\WorkSpace\Flutter\LearnFlutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:88: error: resource android:attr/ttcIndex not found.
    error: failed linking references.
    
    Command: C:\Users\yuan0\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\c36537a358a1654a20210c65934a8337\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
            D:\Sdk\platforms\android-27\android.jar\
            --manifest\
            D:\WorkSpace\Flutter\LearnFlutter\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
            -o\
            D:\WorkSpace\Flutter\LearnFlutter\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
            -R\
            @D:\WorkSpace\Flutter\LearnFlutter\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
            --auto-add-overlay\
            --java\
            D:\WorkSpace\Flutter\LearnFlutter\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
            --custom-package\
            com.frimyuan.learnflutter\
            -0\
            apk\
            --output-text-symbols\
            D:\WorkSpace\Flutter\LearnFlutter\build\app\intermediates\symbols\debug\R.txt\
            --no-version-vectors
    Daemon:  AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
    

    解决方法
    我发现在我的项目里同时存在两个androidSDK版本


    image.png

    将他们统一即可,这里我都改成28,就可以解决这个问题了

    相关文章

      网友评论

          本文标题:Android 日常错误记录

          本文链接:https://www.haomeiwen.com/subject/legwzqtx.html