Android Studio 编译问题

问题1

App\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
App\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
App\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1274: error: resource android:attr/fontVariationSettings not found.
App\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1275: error: resource android:attr/ttcIndex not found.

Command: C:\Users\xxxx.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\116bcc5652d8293a967306540652ecf1\aapt2-3.2.1-4818971-windows\aapt2.exe link -I
D:\AndroidSDK\Sdk\platforms\android-27\android.jar
–manifest
E:\App\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml
-o
E:\App\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_
-R
@E:\App\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt
–auto-add-overlay
–java
E:\App\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r
–custom-package
com.arcsoft.beautyshot_app
-0
apk
–output-text-symbols
E:\App\build\intermediates\symbols\debug\R.txt
–no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0

解决:
stackOverFlow 上的方案基本上都试过了,都不能用。
最后降低下 gradle 版本就能解决了, gradle 从 3.2.1 降低至 3.1.4 。

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.4'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

问题 2

The file is not part of the project.Please include it . android studio
在这里插入图片描述
NDK 版本问题导致的,需要升级下 NDK 版本,或者使用 SDK 默认的 NDK 。

联系与交流

我的公众号

我的微信

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

字节流动

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值