Closed soapgu closed 2 years ago
It looks like part of the loading routine has an implicit dependency I didn't test for on API Level 26 features. Are you running with an API Level higher than this? If that isn't possible, I can look into revisions that change how the library is loaded.
Here is my github repository,NdiFinder My Hardware Deivice API Level is 25。compileSdk and targetSdk is 30. IDE Tools:Android Studio 2020.3.1 for Windows 64-bit
I apologize for not responding in a few days! I have bounced off a few ideas that avoid the problem code, but I am having a hard time coming up with a solution that is platform independent.
If it is at all possible, the ideal solution would be to require API Level 26 at this time, but more generally, this library should be packaged differently on Android systems. I have created a separate issue tracking this goal, but I will leave this issue open until that can be addressed.
I have an experimental build that uses a more android-friendly method of loading libraries. It would be great if you could try out putting this devolay-2.0.2.aar.zip (make sure to unzip it first) file in your project directory, and depending on it with
implementation(files("devolay-2.0.2.aar"))
Thank you for your patience!
A build with this fix has been published! To use it, change your dependency to:
dependencies {
implementation('me.walkerknapp:devolay:2.1.0') {
artifact {
name = "devolay"
type = "aar"
}
}
}
Feel free to reopen if you have any more issues!
I want run a demo to use.
I add dependencies in build.gradle
here is MainActivity.java
when I launching app on my Android device, it crash. I have no idea