SiliconLabs / SimplicityConnect-android

This is the source code for the EFR Connect application for Android.
Apache License 2.0
154 stars 76 forks source link

Build the new V2.8.0 ~ V2.9.3 source code - 2 issues #32

Open RadioOperator opened 10 months ago

RadioOperator commented 10 months ago

Hi, I've try to build the v2.8.0, Two issues:

  1. run App - [press Demo] - [press Scan] on the bottom nav bar, Logcat will see the error:
    
    Failed to inflate ColorStateList, leaving it to the framework
    java.lang.UnsupportedOperationException: Failed to resolve attribute at index 0: TypedValue{t=0x2/d=0x7f04010e a=-1}, theme={InheritanceMap=[id=0x7f1402abcom.siliconlabs.bledemo:style/ThemeOverlay.Material3.Button.IconButton, id=0x7f1402aecom.siliconlabs.bledemo:style/ThemeOverlay.Material3.Button.TextButton], Themes=[com.siliconlabs.bledemo:style/ThemeOverlay.Material3.Button.IconButton, forced, com.siliconlabs.bledemo:style/MainAppTheme, forced, com.siliconlabs.bledemo:style/CustomSplashTheme, forced, com.siliconlabs.bledemo:style/Theme.AppCompat.Empty, forced, android:style/Theme.DeviceDefault.Light.DarkActionBar, forced]}
    at android.content.res.TypedArray.getColor(TypedArray.java:529)

.........................

at com.siliconlabs.bledemo.common.views.ExpandArrow.(ExpandArrow.kt:8)

........................

at com.siliconlabs.bledemo.databinding.AdapterBrowserDeviceBinding.inflate(AdapterBrowserDeviceBinding.java:104) at com.siliconlabs.bledemo.databinding.AdapterBrowserDeviceBinding.inflate(AdapterBrowserDeviceBinding.java:98)


2. In the Demo page, press [Matter Demo], App crashed immediately. (seems the lib file - CHIPController.jar  with error/bugs.)

The logcat reports:

Shutting down VM E FATAL EXCEPTION: main Process: com.siliconlabs.bledemo, PID: 26430 java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/~~7JmyRpIQLugiQF2OSp5tfw==/com.siliconlabs.bledemo-aLo8HfzF3G0HtRUVF_PMMA==/base.apk!/lib/arm64-v8a/libCHIPController.so" has bad ELF magic: 76657273

at java.lang.Runtime.loadLibrary0(Runtime.java:1082) at java.lang.Runtime.loadLibrary0(Runtime.java:1003) at java.lang.System.loadLibrary(System.java:1661) at chip.devicecontroller.ChipDeviceController.(ChipDeviceController.java:1081) at com.siliconlabs.bledemo.features.demo.matter_demo.utils.ChipClient.getAndroidChipPlatform(ChipClient.kt:49) at com.siliconlabs.bledemo.features.demo.matter_demo.utils.ChipClient.getDeviceController(ChipClient.kt:33) at com.siliconlabs.bledemo.features.demo.matter_demo.activities.MatterDemoActivity.onCreate(MatterDemoActivity.kt:73) at android.app.Activity.performCreate(Activity.java:8944) at android.app.Activity.performCreate(Activity.java:8913)



Please help to check the problems, thanks.
RadioOperator commented 5 months ago

Those 2 errors, still in the new v2.9.3 release.