当我构建我的Android项目时,我得到了以下消息:
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
/home/janek/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.10/4d147bf43060dc43d61b096e24da1e67dfe0c032/kotlin-stdlib-jdk7-1.3.10
1如何解决Duplicate class org.opencv found in modules jetified-opencv-4.3.0-runtime (com.quickbirdstudios:opencv:4.3.0) and jetified-opencv-android-gradle-repo-3.3.0-runtime (com.github.davidmigloz:opencv-android-gradle-repo:3.3.0)
我在颤振项目中使用opencv: ^1.0.4
2和Runtime JAR files in the classpath should have
当我使用Android构建一个Android w/ Jetpack撰写应用程序时,我收到了一个警告:
Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
.../transformed/jetified-kotlin-stdlib-jdk8-1.5.31.jar (version 1.5)
.../transformed/jetified-kotlin-stdlib-jdk7-1.5.31.jar (version 1.5)
.../t
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with
类路径中的flutter文件应该具有相同的版本。这些文件是在类路径中找到的。
我如何解决这个问题?
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/admin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.5.30/5fd47535cc85f9e24996f939c2de6583991481b0
相似问题
只为新项目解决,但当我尝试旧项目时,我仍然面临错误。此外,我还尝试了颤振清洁,重启设备等。
➜ xxxx git:(master) ✗ flutter build apk --release
Building with sound null safety
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
/Users/yogiarifwidodo/.gradle/caches/module
对我的问题进行严格复制的回购:
规范,这再简单不过了:
class WebDriverSpeks : Spek({
ChromeDriverManager.getInstance().setup()
val co = ChromeOptions()
val chromeDriver = ChromeDriver(co) as WebDriver
beforeGroup {
chromeDriver.get("https://yahoo.com/")
}
describe("yahoo")
当运行颤振构建apk时,我得到以下信息:
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/username/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.50/50ad05ea1c2595fb31b800e76db464d08d599af3/kotlin-stdlib-jdk7-1.3.50
尝试使用最新的kotlin版本1.4.21创建插件,因此它与gradle中捆绑的1.3.72冲突,当我使用下面的日志构建它时,有没有办法排除gradle中捆绑的kotlin库?: w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/xxx/.gradle/wrapper/dists/gradle-6.7-bin/efvqh8uyq79v2n7rcncuhu9sv/gradle-6.7/lib/kotli
我正在构建一个使用一些软件包的颤振应用程序。其中一些包捆绑了Kotlin运行时。当然,不同的包使用不同的Kotlin运行时。此外,我的应用程序中还有很多本地代码,当然,也依赖于Kotlin。因此,Kotlin在我自己的应用程序本地代码和颤振依赖项中都被声明为依赖项。
这将导致在构建发行版apk和appbundle时产生这样的消息:
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/roc/.gradle
大家好,当我在颤振项目中构建apk时,我遇到了错误。我不确定这是因为代码还是一些设置问题。我认为设置颤振是有问题的。
该错误声明:
PS F:\FYP\Code\Recipedia> flutter build apk --build-name Recipedia --build-number 01
Building with sound null safety
w: Runtime JAR files in the classpath should have the same version. These files were found in
the classpath:
C:
Building without sound null safety For more information see https://dart.dev/null-safety/unsound-null-safety
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
/Users/aydemir/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin
我刚刚在我的Android项目中启用了Kotlin,我偶然发现了一个警告。在第二个构建(构建->重建项目)之后,此警告将显示在消息下面:
Warning:Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.2.10/85fe1811f3e586d0cc53aba1394d80
我使用最新的Gradle (6.6.1节)和最新的Kotlin (1.4节)。
buildSrc项目定义了所有的Kotlin版本。不幸的是,它收到了下面的错误。
The `kotlin-dsl` plugin applied to project ':buildSrc' enables experimental Kotlin compiler features. For more information see https://docs.gradle.org/6.6.1/userguide/kotlin_dsl.html#sec:kotlin-dsl_plugin
w: Run
我试图使用React-Native构建一个Android应用程序。在添加Facebook登录功能时,我遇到了一个奇怪的问题,出现了以下错误:
> Task :app:lint
w: Runtime JAR files in the classpath have the version 1.3, which is older than the API version 1.4. Consider using the runtime of version 1.4, or pass '-api-version 1.3' explicitly to restrict the ava
我有一个Kotlin库,我想将其发布到Maven存储库并在其他应用程序中使用。
但是当我将它作为依赖项(添加到pom.xml)添加到我的Kotlin应用程序中时,我收到了这样的警告:
[WARNING] Some JAR files in the classpath have the Kotlin Runtime library bundled into them.
This may cause difficult to debug problems if there's a different version of the
Kotlin Runtime library in the
几个小时前,当我在Android上运行Reactive原住民应用程序时,没有问题。甚至它也成功地建立在Azure DevOps上。
直到我再次尝试运行这个应用程序时,才发生了这样的情况:
* What went wrong:
Execution failed for task ':expo-splash-screen:compileDebugKotlin'.
> Compilation error. See log for more details
我跟踪日志,它显示了以下消息:
> Task :expo-splash-screen:compileDebugKotl
我收到了一些关于脏类路径的警告:
w: Runtime JAR files in the classpath have the version 1.2, which is older than the API version 1.3. Consider using the runtime of version 1.3, or pass '-api-version 1.2' explicitly to restrict the available APIs to the runtime of version 1.2. You can also pass '-languag
坦率地说,我不知道如何理解和调试这个错误。所以如果我错过了什么请告诉我。
我是如何达到这个错误的:
我想在预览窗口中使用撰写并查看预览。
我创建了一个新的android studio项目,其中包含了空的撰写活动。
构建是成功的,但预览没有加载。它只是显示“生成和刷新”按钮在那里。
当我单击“构建和刷新”按钮时,android再次启动构建过程,并以以下消息失败:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:compileDeb
我目前正在使用Gradle ()开发一个Kotlin项目。这是一个Bukkit插件,它依赖于我维护的库()。当在终端中运行./gradlew assemble时,一切正常,构建成功(下面的日志)。
$ ./gradlew assemble --console plain
> Task :compileKotlin
w: Some JAR files in the classpath have the Kotlin Runtime library bundled into them. This may cause difficult to debug problems if there&
我已经将我的Android更新为Artic,并将Gradle包装器更新为7.0.2 (插件7.0.0)和JDK1.8 -> 11。
当我通过Android在我的设备上安装调试版本时,它可以工作,并且没有错误。
现在,每当我尝试创建一个发行版APK时,构建都会失败,并且会出现Lint错误。不知道是怎么回事。
w: Runtime JAR files in the classpath have the version 1.4, which is older than the API version 1.5. Consider using the runtime of version 1.5,
我有一个unix脚本,它将为两个文件创建md5sum,然后检查这两个文件是否匹配。这是脚本的一个例子--但这并不是正确地比较文件--有人能说明这一点吗?
md5sum version1.txt >> file1
md5sum version2.txt >> file2
if [ $file1 == $file2 ]
then
echo "Files have the same content"
else
echo "Files have NOT the same content"
fi
我正在尝试使用Ant build从IBM RSA IDE中运行Ant任务……
我得到以下错误消息:
BUILD FAILED
build.xml:21: Could
not create task or type of type: getProjectData.
Ant could not find the task or a class this task relies upon.
This is common and has a number of causes; the usual
solutions are to read the manual pages then downlo
我对Kotlin比较陌生。
我确实创建了一个测试项目,只是目前的Hello。
编译/包确定,然后当我尝试运行main.kt时:
Kotlin: API version 1.1 is no longer supported; please, use version 1.2 or greater.
把我逼疯了。好吧,这里有一些我做过的事情:
Ubuntu18.04IntelliJ Idea 2020.3 -所有插件/库更新了从project创建的 Kotlin项目->Kotlin->SDK1.8-> Maven (需要模拟具有类似设置的另一个环境)
关于设置/构建/Kotlin编
我有一个脚本来删除目录中较低版本的jars文件。
#!/bin/bash
#Script to remove lower version jar files.
for PREFIX in `ls *.jar|sed 's/-[0-9\.\0-9\.a-zA-Z]*\.jar//g'|uniq -d`; do
for FILE in `ls -r ${PREFIX}*|sed '1d'`; do
echo " $FILE"
rm $FILE
done
done
它有个窃听器。
下面是目录中重复的jar文件列表。
xyz-1
我写了一些脚本,并有意外的文件结尾
echo off
if [$JAVA_HOME = ""]; then goto no_java_home fi
if [$SRV_HOME = ""]; then goto no_srv_home fi
echo Uses JAVA_HOME=$JAVA_HOME
echo Uses SRV_HOME=$SRV_HOME
export ACP=""
export ACP=$ACP;$JAVA_HOME/lib/tools.jar
export ACP=$ACP;$SRV_HOME/ant/lib/ant.j
我试图在Windows10上使用ANTLR4.8编译一个很小的hello.g4语法文件,我的最终目标是在Visual中运行ANTLR。
问题是,发生了一些事情来阻止我使用常量路径设置运行生成、编译、执行序列。我不太了解Java是如何工作的,无法确定出了什么问题(或者如何修复它)。
The location of the latest Java SDK 14.0 files:
c:\program files\...\sdk 14.0\(a pile of files including java.exe and javac.exe)
The original Java 8 runtime l
我曾尝试编写一个程序,在其中我想访问jar中的类。
我使用netbeans作为ide,Windows7操作系统,并在库中添加了jar。但我一直收到错误。
Exception in thread “main” java.lang.NoClassDefFoundError:after setting PATh and CLASSPATH
I have set the PATh variable to my <jdk directory>/bin;
CLASSPATH to %CLASSPATH%;
and JAVA_HOME to <jdk directory>
&