gpt4 book ai didi

android - roboblender-3.0.1.jar : not included in Android: javax. 工具。引用自 com.google.inject.blender.AnnotationDatabaseGenerator

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:45:55 28 4
gpt4 key购买 nike

我尝试构建我的 android 项目,我得到:

Information:Gradle: Executing tasks: [clean, :app:compileDebugSources]
Information:1/10/15, 11:13 AM - Compilation completed successfully in 5 sec

然后我尝试将它部署到我的设备并获得:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:lint'.
> Lint found errors in the project; aborting build.

Fix the issues identified by lint, or add the following to your build script to proceed with errors:
...
android {
lintOptions {
abortOnError false
}
}

然后我查看 lint 报告并看到:

InvalidPackage: Package not included in Android
../../../../../.gradle/caches/modules-2/files-2.1/org.roboguice/roboblender/3.0.1/d629079b9bfa8d889ec833d1eb747e89cf789bfa/roboblender-3.0.1.jar: Invalid package reference in library; not included in Android: javax.tools. Referenced from com.google.inject.blender.AnnotationDatabaseGenerator.
../../../../../.gradle/caches/modules-2/files-2.1/org.roboguice/roboguice/3.0.1/24e814f35d5cc28eaa7e9f07a50ea69deeb2b544/roboguice-3.0.1.jar: Invalid package reference in library; not included in Android: javax.inject. Referenced from com.google.inject.Scopes.3.
../../../../../.gradle/caches/modules-2/files-2.1/org.apache.velocity/velocity/1.7/2ceb567b8f3f21118ecdec129fe1271dbc09aa7a/velocity-1.7.jar: Invalid package reference in library; not included in Android: javax.naming. Referenced from org.apache.velocity.runtime.resource.loader.DataSourceResourceLoader.
../../../../../.gradle/caches/modules-2/files-2.1/org.apache.velocity/velocity/1.7/2ceb567b8f3f21118ecdec129fe1271dbc09aa7a/velocity-1.7.jar: Invalid package reference in library; not included in Android: javax.servlet.http. Referenced from org.apache.velocity.servlet.VelocityServlet.
../../../../../.gradle/caches/modules-2/files-2.1/org.apache.velocity/velocity/1.7/2ceb567b8f3f21118ecdec129fe1271dbc09aa7a/velocity-1.7.jar: Invalid package reference in library; not included in Android: javax.servlet. Referenced from org.apache.velocity.runtime.log.ServletLogChute.

我在 mac 上工作,roboguice 一直工作到昨晚。

我有 VPN 代理,因为它是我的工作 mac。我试图将其关闭和打开。没有任何帮助。

没有它,我通常都能上网。

什么地方会出错?

最佳答案

尝试将 lint 选项添加到项目的 build.gradle 文件中。

 android {
// your build config
defaultConfig { ... }
signingConfigs { ... }
compileOptions { ... }
buildTypes { ... }
// This is important, it will run lint checks but won't abort build
lintOptions {
abortOnError false
}
}

如果这不起作用,请尝试将其替换为

android {
// your build config
defaultConfig { ... }
signingConfigs { ... }
compileOptions { ... }
buildTypes { ... }
// This is important, it will run lint checks but won't abort build
lintOptions {
checkReleaseBuilds false
}
}

关于android - roboblender-3.0.1.jar : not included in Android: javax. 工具。引用自 com.google.inject.blender.AnnotationDatabaseGenerator,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27874617/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com