iknow4x / Android-Video-Trimmer

The Android-Video-Trimmer project implements the selection of clips for long and short videos. It uses MediaMetadataRetriever to obtain video frames, and uses ffmpeg for video cropping and video compression.
Apache License 2.0
1.09k stars 262 forks source link

编译 缺少ActivityRecordingLayoutBinding #38

Closed PawnLee closed 5 years ago

PawnLee commented 5 years ago

Error:(7, 37) 错误: 找不到符号 符号: 类 ActivityRecordingLayoutBinding 位置: 程序包 com.iknow.android.databinding

iknow4x commented 5 years ago

在build.gradle中开启 databinding

On Feb 27, 2019, at 4:15 PM, PawnLee notifications@github.com wrote:

Error:(7, 37) 错误: 找不到符号 符号: 类 ActivityRecordingLayoutBinding 位置: 程序包 com.iknow.android.databinding

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/iknow4/Android-Video-Trimmer/issues/38, or mute the thread https://github.com/notifications/unsubscribe-auth/AHDI1XI2Uqun2UA2jTFeKNaK3nTVoXbNks5vRj6KgaJpZM4bT8TE.

PawnLee commented 5 years ago

在build.gradle中开启数据绑定 ... 在2019年2月27日下午4:15,PawnLee @.***>写道:错误:(7,37)错误:找不到符号符号:类ActivityRecordingLayoutBinding位置:程序包com。 iknow.android.databinding - 您收到此消息是因为您订阅了此主题。直接回复此电子邮件,在GitHub上查看< #38 >,或将线程静音< https://github.com/notifications/unsubscribe-auth/AHDI1XI2Uqun2UA2jTFeKNaK3nTVoXbNks5vRj6KgaJpZM4bT8TE >。

PawnLee commented 5 years ago
dataBinding {
    enabled = true
}

默认是开启的

同时导入R文件也报错

iknow4x commented 5 years ago

gradle 同步下。这个问题应该是你的工程没用同步好。

PawnLee commented 5 years ago

我这边看databinding包下没有ActivityRecordingLayoutBinding 文件。

注释后,可以在手机上运行

iknow4x commented 5 years ago

你代码是最新的吗?

PawnLee commented 5 years ago

最新的