当前位置:网站首页>Databinding exception of kotlin
Databinding exception of kotlin
2022-07-07 07:07:00 【Dream of changing life】
I'm trying it out recently Kotlin +JetPack Component development project , I met a strange problem , Just trying Databinding When , When compiling a file , There is no mistake , But there will be BR File error . The principle of checking the official website is Kotlin In the use of Databinding When , Need configuration kapt plug-in unit .
Error:(6, 26) Unresolved reference: databinding
terms of settlement :
1、project build.gradle Middle configuration :
buildscript {
ext.kotlin_version ='1.7.0'
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.2"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter() // Warning: this repository is going to shut down soon
maven { url 'https://jitpack.io' }
}
}
// The core :
ext.kotlin_version ='1.7.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0"
2、app build.gradle Middle configuration :
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
kapt {
generateStubs = true
}
Fix up the work , If you have any questions, please leave a message ~
边栏推荐
- 【luogu P1971】兔兔与蛋蛋游戏(二分图博弈)
- Answer to the first stage of the assignment of "information security management and evaluation" of the higher vocational group of the 2018 Jiangsu Vocational College skills competition
- Please tell me how to monitor multiple schemas and tables by listening to PgSQL
- Distributed ID solution
- After the promotion, sales volume and flow are both. Is it really easy to relax?
- Stack and queue-p79-10 [2014 unified examination real question]
- What books can greatly improve programming ideas and abilities?
- [Luogu p1971] rabbit and egg game (bipartite game)
- MYSQL----导入导出&视图&索引&执行计划
- sqlserver多线程查询问题
猜你喜欢

7天零基础能考证HCIA吗?华为认证系统学习路线分享

How can gyms improve their competitiveness?

Basic introduction of JWT

RuntimeError: CUDA error: CUBLAS_ STATUS_ ALLOC_ Failed when calling `cublascreate (handle) `problem solving

After the promotion, sales volume and flow are both. Is it really easy to relax?

Bus message bus

华为机试题素数伴侣

LC interview question 02.07 Linked list intersection & lc142 Circular linked list II

Unity3d learning notes

Brand · consultation standardization
随机推荐
ESXI挂载移动(机械)硬盘详细教程
ip地址那点事
工具类:对象转map 驼峰转下划线 下划线转驼峰
途家、木鸟、美团……民宿暑期战事将起
Comment les entreprises gèrent - elles les données? Partager les leçons tirées des quatre aspects de la gouvernance des données
Bus消息总线
Basic process of network transmission using tcp/ip four layer model
Test of transform parameters of impdp
Master-slave replication principle of MySQL
Big coffee gathering | nextarch foundation cloud development meetup is coming
MOS tube parameters μ A method of Cox
Answer to the second stage of the assignment of "information security management and evaluation" of the higher vocational group of the 2018 Jiangsu Vocational College skills competition
【mysqld】Can't create/write to file
From zero to one, I will teach you to build the "clip search by text" search service (2): 5 minutes to realize the prototype
mysql查看bin log 并恢复数据
【mysqld】Can't create/write to file
Distributed ID solution
毕业设计游戏商城
MySql用户权限
Stack Title: nesting depth of valid parentheses