您好,我在引用第三方SDK制作原生插件时,打包自定义基座时报AAPT: error: attribute layout_constraintTop_toTopOf (aka com.myzhoudao.EnterpriseZhoudaoApp:layout_constraintTop_toTopOf) not found.
根据错误提示看起来是缺少引用,我在引用第三方SDK的工程里加了引用:
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
但是打包自定义基座还是报同样的错误,请帮忙分析一下原因,感谢。
- 发布:2023-04-26 08:46
- 更新:2024-11-08 14:34
- 阅读:506
引用第三方SDK制作原生插件时,报AAPT: error: attribute layout_constraintTop_toTopOf
a***@rzport.com (作者)
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:processReleaseResources'.A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:/home/[Name]/.gradle/caches/transforms-3/781140bca974b846b3271db188e41bf4/transformed/jetified-SDLLPayYL-release/res/layout/activity_yinlian_web.xml:15: AAPT: error: attribute layout_constraintTop_toTopOf (aka com.myzhoudao.EnterpriseZhoudaoApp:layout_constraintTop_toTopOf) not found.
ERROR:/home/[Name]/.gradle/caches/transforms-3/781140bca974b846b3271db188e41bf4/transformed/jetified-SDLLPayYL-release/res/layout/activity_yinlian_web.xml:29: AAPT: error: attribute layout_constraintTop_toTopOf (aka com.myzhoudao.EnterpriseZhoudaoApp:layout_constraintTop_toTopOf) not found.
ERROR:/home/[Name]/.gradle/caches/transforms-3/781140bca974b846b3271db188e41bf4/transformed/jetified-SDLLPayYL-release/res/layout/activity_yinlian_web.xml:29: AAPT: error: attribute layout_constraintBottom_toBottomOf (aka com.myzhoudao.EnterpriseZhoudaoApp:layout_constraintBottom_toBottomOf) not found.
ERROR:/home/[Name]/.gradle/caches/transforms-3/781140bca974b846b3271db188e41bf4/transformed/jetified-SDLLPayYL-release/res/layout/activity_yinlian_web.xml:29: AAPT: error: attribute layout_constraintLeft_toLeftOf (aka com.myzhoudao.EnterpriseZhoudaoApp:layout_constraintLeft_toLeftOf) not found.