Skip to content

Analysis of the error occurring in the sample project【Windows 11】【Unity 2021.3.37f1】 #3

@TLabAltoh

Description

@TLabAltoh

I'm currently building the plugin with JDK 17, but it seems I might need to build it with JDK 11 or JDK 8 to work with Windows 11 + Unity 2021.3.37f1

Android Studio>

Android Studio Koala | 2024.1.1
Build #AI-241.15989.150.2411.11948838, built on June 11, 2024
Runtime version: 17.0.10+0--11609105 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 24
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true
Non-Bundled Plugins:
GLSL (1.24)

Build Output

Executing tasks: [:libTLabWebView:clean, :libTLabWebView:assembleRelease, :libTLabWebView:assembleReleaseUnitTest] in project C:\Users{username}\source\tmp\TLabWebViewPlugin

Configure project :libTLabWebView
AGPBI: {"kind":"warning","text":"API 'variantOutput.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'.\nIt will be removed in version 8.0 of the Android Gradle plugin.\nFor more information, see https://d.android.com/r/tools/task-configuration-avoidance.\nTo determine what is calling variantOutput.getPackageLibrary(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.","sources":[{}]}
AGPBI: {"kind":"warning","text":"We recommend using a newer Android Gradle plugin to use compileSdk = 34\n\nThis Android Gradle plugin (7.3.1) was tested up to compileSdk = 33\n\nThis warning can be suppressed by adding\n android.suppressUnsupportedCompileSdk=34\nto this project's gradle.properties\n\nThe build will continue, but you are strongly encouraged to update your project to\nuse a newer Android Gradle Plugin that has been tested with compileSdk = 34","sources":[{}]}

Task :libTLabWebView:externalNativeBuildCleanDebug
Clean shared-texture-armeabi-v7a, glutil-armeabi-v7a, jni-libTLabWebView-armeabi-v7a
Clean shared-texture-arm64-v8a, glutil-arm64-v8a, jni-libTLabWebView-arm64-v8a

Task :libTLabWebView:externalNativeBuildCleanRelease
Clean shared-texture-armeabi-v7a, glutil-armeabi-v7a, jni-libTLabWebView-armeabi-v7a
Clean shared-texture-arm64-v8a, glutil-arm64-v8a, jni-libTLabWebView-arm64-v8a

Task :libTLabWebView:clean
Task :libTLabWebView:preBuild UP-TO-DATE
Task :libTLabWebView:preReleaseBuild UP-TO-DATE
Task :libTLabWebView:configureCMakeRelWithDebInfo[arm64-v8a]
Task :libTLabWebView:configureCMakeRelWithDebInfo[armeabi-v7a]
Task :libTLabWebView:assembleReleaseUnitTest UP-TO-DATE
Task :libTLabWebView:compileReleaseAidl NO-SOURCE

Task :libTLabWebView:buildCMakeRelWithDebInfo[arm64-v8a]
C/C++: ninja: Entering directory `C:\Users{username}\source\tmp\TLabWebViewPlugin\libTLabWebView.cxx\RelWithDebInfo\13h5v281\arm64-v8a'
C/C++: C:/Users/{username}/source/tmp/TLabWebViewPlugin/libTLabWebView/src/main/cpp/native/native.cpp:2:10: warning: non-portable path to file '"JniLog.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]

Task :libTLabWebView:buildCMakeRelWithDebInfo[armeabi-v7a]
C/C++: ninja: Entering directory `C:\Users{username}\source\tmp\TLabWebViewPlugin\libTLabWebView.cxx\RelWithDebInfo\13h5v281\armeabi-v7a'
C/C++: C:/Users/{username}/source/tmp/TLabWebViewPlugin/libTLabWebView/src/main/cpp/native/native.cpp:2:10: warning: non-portable path to file '"JniLog.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
C/C++: C:/Users/{username}/source/tmp/TLabWebViewPlugin/libTLabWebView/src/main/cpp/SharedTexture/SharedTexture.cpp:187:27: warning: implicit conversion of NULL constant to 'long' [-Wnull-conversion]
C/C++: C:/Users/{username}/source/tmp/TLabWebViewPlugin/libTLabWebView/src/main/cpp/SharedTexture/SharedTexture.cpp:188:24: warning: implicit conversion of NULL constant to 'long' [-Wnull-conversion]
C/C++: C:/Users/{username}/source/tmp/TLabWebViewPlugin/libTLabWebView/src/main/cpp/SharedTexture/SharedTexture.cpp:189:32: warning: implicit conversion of NULL constant to 'long' [-Wnull-conversion]

Task :libTLabWebView:externalNativeBuildRelease
Task :libTLabWebView:mergeReleaseJniLibFolders
Task :libTLabWebView:compileReleaseRenderscript NO-SOURCE
Task :libTLabWebView:generateReleaseResValues
Task :libTLabWebView:extractDeepLinksForAarRelease UP-TO-DATE
Task :libTLabWebView:generateReleaseBuildConfig
Task :libTLabWebView:generateReleaseResources
Task :libTLabWebView:mergeReleaseNativeLibs
Task :libTLabWebView:packageReleaseResources
Task :libTLabWebView:javaPreCompileRelease
Task :libTLabWebView:mergeReleaseShaders
Task :libTLabWebView:compileReleaseShaders NO-SOURCE
Task :libTLabWebView:generateReleaseAssets UP-TO-DATE
Task :libTLabWebView:packageReleaseAssets
Task :libTLabWebView:packageReleaseRenderscript NO-SOURCE
Task :libTLabWebView:stripReleaseDebugSymbols
Task :libTLabWebView:prepareLintJarForPublish
Task :libTLabWebView:parseReleaseLocalResources
Task :libTLabWebView:prepareReleaseArtProfile
Task :libTLabWebView:processReleaseJavaRes NO-SOURCE
Task :libTLabWebView:copyReleaseJniLibsProjectAndLocalJars
Task :libTLabWebView:writeReleaseAarMetadata
Task :libTLabWebView:createReleaseVariantModel
Task :libTLabWebView:processReleaseManifest
Task :libTLabWebView:mergeReleaseJavaResource
Task :libTLabWebView:mapReleaseSourceSetPaths
Task :libTLabWebView:generateReleaseRFile
Task :libTLabWebView:mergeReleaseResources

Task :libTLabWebView:compileReleaseJavaWithJavac
ノート:一部の入力ファイルは推奨されないAPIを使用またはオーバーライドしています。
ノート:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。

Task :libTLabWebView:mergeReleaseGeneratedProguardFiles UP-TO-DATE

Task :libTLabWebView:extractReleaseAnnotations
e: C:/Users/{username}/.gradle/caches/transforms-3/8e64a20a2e118bee0870b01de36ff4b5/transformed/core-1.15.0-api.jar!/META-INF/core_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/{username}/.gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-common/2.6.2/10f354fdb64868baecd67128560c5a0d6312c495/lifecycle-common-2.6.2.jar!/META-INF/lifecycle-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/{username}/.gradle/caches/transforms-3/35f72ed55595c1d7a8e32ca0348ae416/transformed/lifecycle-runtime-2.6.2-api.jar!/META-INF/lifecycle-runtime_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/{username}/.gradle/caches/modules-2/files-2.1/androidx.collection/collection-jvm/1.4.2/bc60b5568a66d765a9fe8e266fd0c6c727e0b50b/collection-jvm-1.4.2.jar!/META-INF/collection.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/{username}/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-jvm/1.9.1/b17951747e38bf3986a24431b9ba0d039958aa5f/annotation-jvm-1.9.1.jar!/META-INF/annotation.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.6.0.
e: C:/Users/{username}/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.24/9928532f12c66ad816a625b3f9984f8368ca6d2b/kotlin-stdlib-1.9.24.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.6.0.
e: C:/Users/{username}/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.24/9928532f12c66ad816a625b3f9984f8368ca6d2b/kotlin-stdlib-1.9.24.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.6.0.
e: C:/Users/{username}/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.24/9928532f12c66ad816a625b3f9984f8368ca6d2b/kotlin-stdlib-1.9.24.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.6.0.

Task :libTLabWebView:mergeReleaseConsumerProguardFiles
Task :libTLabWebView:syncReleaseLibJars
Task :libTLabWebView:bundleReleaseAar
Task :libTLabWebView:verifyReleaseResources
Task :libTLabWebView:assembleRelease

BUILD SUCCESSFUL in 15s
36 actionable tasks: 34 executed, 2 up-to-date

Build Analyzer results available

Related issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions