Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
After updating kotlin version to 2.0.0 automatically, Build error is occurred as below.
I used below script for building Android chip-tool.
./scripts/build/build_examples.py --target android-arm64-chip-tool build
And, I use this command for installing kotlin compiler.
sudo snap install --classic kotlin
2024-06-11 14:32:43 WARNING e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
2024-06-11 14:32:43 WARNING e: file:///home/joonhaeng/source/jh_240610/connectedhomeip/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/CHIPToolActivity.kt:40:33 Class 'matter.onboardingpayload.OnboardingPayload' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0.
2024-06-11 14:32:43 WARNING The class is loaded from /home/joonhaeng/.gradle/caches/transforms-3/fb2941616fc7ad537eba5e6a5fc890ea/transformed/jetified-OnboardingPayload.jar!/matter/onboardingpayload/OnboardingPayload.class
2024-06-11 14:32:43 WARNING e: file:///home/joonhaeng/source/jh_240610/connectedhomeip/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/CHIPToolActivity.kt:41:33 Class 'matter.onboardingpayload.OnboardingPayloadParser' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0.
2024-06-11 14:32:43 WARNING The class is loaded from /home/joonhaeng/.gradle/caches/transforms-3/fb2941616fc7ad537eba5e6a5fc890ea/transformed/jetified-OnboardingPayload.jar!/matter/onboardingpayload/OnboardingPayloadParser.class
2024-06-11 14:32:43 WARNING e: file:///home/joonhaeng/source/jh_240610/connectedhomeip/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/CHIPToolActivity.kt:42:33 Class 'matter.onboardingpayload.UnrecognizedQrCodeException' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0.
2024-06-11 14:32:43 WARNING The class is loaded from /home/joonhaeng/.gradle/caches/transforms-3/fb2941616fc7ad537eba5e6a5fc890ea/transformed/jetified-OnboardingPayload.jar!/matter/onboardingpayload/UnrecognizedQrCodeException.class
2024-06-11 14:32:43 WARNING e: file:///home/joonhaeng/source/jh_240610/connectedhomeip/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/CHIPToolActivity.kt:154:32 Class 'matter.onboardingpayload.OnboardingPayload' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0.
2024-06-11 14:32:43 WARNING The class is loaded from /home/joonhaeng/.gradle/caches/transforms-3/fb2941616fc7ad537eba5e6a5fc890ea/transformed/jetified-OnboardingPayload.jar!/matter/onboardingpayload/OnboardingPayload.class
Build issue(s)
After updating kotlin version to 2.0.0 automatically, Build error is occurred as below.
I used below script for building Android chip-tool.
./scripts/build/build_examples.py --target android-arm64-chip-tool build
And, I use this command for installing kotlin compiler.sudo snap install --classic kotlin
2024-06-11 14:32:43 WARNING e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors 2024-06-11 14:32:43 WARNING e: file:///home/joonhaeng/source/jh_240610/connectedhomeip/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/CHIPToolActivity.kt:40:33 Class 'matter.onboardingpayload.OnboardingPayload' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0. 2024-06-11 14:32:43 WARNING The class is loaded from /home/joonhaeng/.gradle/caches/transforms-3/fb2941616fc7ad537eba5e6a5fc890ea/transformed/jetified-OnboardingPayload.jar!/matter/onboardingpayload/OnboardingPayload.class 2024-06-11 14:32:43 WARNING e: file:///home/joonhaeng/source/jh_240610/connectedhomeip/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/CHIPToolActivity.kt:41:33 Class 'matter.onboardingpayload.OnboardingPayloadParser' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0. 2024-06-11 14:32:43 WARNING The class is loaded from /home/joonhaeng/.gradle/caches/transforms-3/fb2941616fc7ad537eba5e6a5fc890ea/transformed/jetified-OnboardingPayload.jar!/matter/onboardingpayload/OnboardingPayloadParser.class 2024-06-11 14:32:43 WARNING e: file:///home/joonhaeng/source/jh_240610/connectedhomeip/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/CHIPToolActivity.kt:42:33 Class 'matter.onboardingpayload.UnrecognizedQrCodeException' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0. 2024-06-11 14:32:43 WARNING The class is loaded from /home/joonhaeng/.gradle/caches/transforms-3/fb2941616fc7ad537eba5e6a5fc890ea/transformed/jetified-OnboardingPayload.jar!/matter/onboardingpayload/UnrecognizedQrCodeException.class 2024-06-11 14:32:43 WARNING e: file:///home/joonhaeng/source/jh_240610/connectedhomeip/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/CHIPToolActivity.kt:154:32 Class 'matter.onboardingpayload.OnboardingPayload' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0. 2024-06-11 14:32:43 WARNING The class is loaded from /home/joonhaeng/.gradle/caches/transforms-3/fb2941616fc7ad537eba5e6a5fc890ea/transformed/jetified-OnboardingPayload.jar!/matter/onboardingpayload/OnboardingPayload.class
Platform
android
Anything else?
No response