Android应用程序无法运行,而同步总是显示错误“无法找到com.android.databinding:baseLibrary:3.0.0”。
错误:
Required by:
project :sample-custom-objects
Could not find com.android.databinding:baseLibrary:3.0.0.
Searched in the following locations:
file:/O:/AndroidSDK-2.3.3/extras/m2repository/com/android/databinding/baseLibrary/3
在我将Android更新到v2.3.3并使用它更新了所需的构建工具和sdk版本之后,在运行./gradlew assemble --stacktrace时出现了以下错误
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':OpenEdXMobile'.
无法解决配置的所有依赖关系“:OpenEdXMobile:_prodDebugApkCopy”。找不到com.android.databinding:baseLibrary:2.3.
在Android中构建项目时,在数据绑定模块-运行时-7.0.4-运行时中观察到的android class.data binding.Database的复制,下面出现的错误是该项目的不完整错误代码和gradle文件:
Duplicate class androidx.databinding.BaseObservableField found in modules databinding-runtime-7.0.4-runtime (androidx.databinding:databinding-runtime:7.0.4) and jetified-library-3.2.0-alpha1
当我试图使用dataBinding ressouce编译我的Android项目时,我会收到以下错误消息
w: warning: The following options were not recognized by any processor:
'[android.databinding.artifactType, android.databinding.printEncodedErrors,
android.databinding.minApi, android.databinding.isTestVariant,
android.databinding.enableDebu
当我选择一个Web铬设备并运行颤振应用程序时,它可以工作,但是当我选择Android设备并运行抖动时,构建失败
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find apksig-4.1.0.jar (co
我正在尝试使用Kotlin为我的Android项目启用数据绑定。我启用了Kotlin插件,但我无法启用数据绑定,我一直收到以下错误
Error:(66, 0) Could not find method kapt() for arguments [com.android.databinding:compiler:2.0.0-beta6] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
我在gradle文件中有以下数据绑定依赖项
dependencies {
当我更新了android工作室3.2.0到3.2.1。我有使用数据绑定,当运行项目显示我这样的错误,如果我错了,请建议我。
Could not find com.android.databinding:compiler:3.2.1.
Searched in the following locations:
file:/C:/Users/Taufiq/AppData/Local/Android/Sdk/extras/m2repository/com/android/databinding/compiler/3.2.1/compiler-3.2.1.pom
file:/C:/Users/Taufi
我有一个多模块项目,其中我将绑定类设置为泛型类型要求:
public abstract class BaseActivity<DataBinding extends ViewDataBinding> {
//Rest of the code...
}
但是,如果在子模块上扩展此活动,有时会出现以下生成错误:
错误:找不到符号公共空myMethod(MyActivityBinding dataBinding) {
错误:包com.mydomain.databinding不存在导入com.mydomain.databinding.MyActivityBinding;
有
今天早上我收到一个错误,我的应用程序无法安装,我已经追踪到了这个问题。我在同一个文件中有两个相同的类。我不想包含整个生成的文件,因为它非常长。
public class AddVinDialogFragmentBinding extends androidx.databinding.ViewDataBinding implements android.databinding.generated.callback.OnClickListener.Listener {
@Nullable
private static final androidx.databinding.ViewD
在将支持库更新到27.0.2之后,我得到了这个错误。
Error:Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.android.support:support-v4' has different version for the compile (21.0.3) and runtime (27.0.2) classpath. You should manually set the same version via DependencyResolution
我