ClassNotFoundException: Didn't find class "com.wowza.gocoder.sdk.api.devices.WZCameraView"

Hello,
I followed your tutorial at:
https://www.wowza.com/docs/how-to-build-a-basic-app-with-gocoder-sdk-for-android

My code is the same of the tutorial.

The app compiles, but I get the following crash at app startup on my Android 7 device:

--------- beginning of crash
2019-07-29 13:56:24.629 29055-29055/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: my.app.package.tvapp, PID: 29055
java.lang.RuntimeException: Unable to start activity ComponentInfo{my.app.package.tvapp/my.app.package.tvapp.MainActivity}: android.view.InflateException: Binary XML file line #12: Binary XML file line #12: Error inflating class com.wowza.gocoder.sdk.api.devices.WZCameraView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2793)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
Caused by: android.view.InflateException: Binary XML file line #12: Binary XML file line #12: Error inflating class com.wowza.gocoder.sdk.api.devices.WZCameraView
Caused by: android.view.InflateException: Binary XML file line #12: Error inflating class com.wowza.gocoder.sdk.api.devices.WZCameraView
Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.wowza.gocoder.sdk.api.devices.WZCameraView” on path: DexPathList[[zip file “/data/app/my.app.package.tvapp-1/base.apk”, zip file “/data/app/my.app.package.tvapp-1/split_lib_dependencies_apk.apk”, zip file “/data/app/my.app.package.tvapp-1/split_lib_slice_0_apk.apk”, zip file “/data/app/my.app.package.tvapp-1/split_lib_slice_1_apk.apk”, zip file “/data/app/my.app.package.tvapp-1/split_lib_slice_2_apk.apk”, zip file “/data/app/my.app.package.tvapp-1/split_lib_slice_3_apk.apk”, zip file “/data/app/my.app.package.tvapp-1/split_lib_slice_4_apk.apk”, zip file “/data/app/my.app.package.tvapp-1/split_lib_slice_5_apk.apk”, zip file “/data/app/my.app.package.tvapp-1/split_lib_slice_6_apk.apk”, zip file “/data/app/my.app.package.tvapp-1/split_lib_slice_7_apk.apk”, zip file “/data/app/my.app.package.tvapp-1/split_lib_slice_8_apk.apk”, zip file “/data/app/my.app.package.tvapp-1/split_lib_slice_9_apk.apk”],nativeLibraryDirectories=[/data/app/my.app.package.tvapp-1/lib/arm64, /data/app/my.app.package.tvapp-1/base.apk!/lib/arm64-v8a, /data/app/my.app.package.tvapp-1/split_lib_dependencies_apk.apk!/lib/arm64-v8a, /data/app/my.app.package.tvapp-1/split_lib_slice_0_apk.apk!/lib/arm64-v8a, /data/app/my.app.package.tvapp-1/split_lib_slice_1_apk.apk!/lib/arm64-v8a, /data/app/my.app.package.tvapp-1/split_lib_slice_2_apk.apk!/lib/arm64-v8a, /data/app/my.app.package.tvapp-1/split_lib_slice_3_apk.apk!/lib/arm64-v8a, /data/app/my.app.package.tvapp-1/split_lib_slice_4_apk.apk!/lib/arm64-v8a, /data/app/my.app.package.tvapp-1/split_lib_slice_5_apk.apk!/lib/arm64-v8a, /data/app/my.app.package.tvapp-1/split_lib_slice_6_apk.apk!/lib/arm64-v8a, /data/app/my.app.package.tvapp-1/split_lib_slice_7_apk.apk!/lib/arm64-v8a, /data/app/my.app.package.tvapp-1/split_lib_slice_8_apk.apk!/lib/arm64-v8a, /data/app/my.app.package.tvapp-1/split_lib_slice_9_apk.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /system/vendor/lib64, /product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
2019-07-29 13:56:24.629 29055-29055/? E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:616)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:798)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:738)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:869)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:832)
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
at my.app.package.tvapp.MainActivity.onCreate(MainActivity.java:56)
at android.app.Activity.performCreate(Activity.java:6910)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
Suppressed: java.io.IOException: No original dex files found for dex location /data/app/my.app.package.tvapp-1/split_lib_slice_9_apk.apk
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:373)
at dalvik.system.DexFile.(DexFile.java:113)
at dalvik.system.DexFile.(DexFile.java:78)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:359)
at dalvik.system.DexPathList.makeElements(DexPathList.java:323)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:263)
at dalvik.system.DexPathList.(DexPathList.java:126)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:48)
at dalvik.system.PathClassLoader.(PathClassLoader.java:64)
at com.android.internal.os.PathClassLoaderFactory.createClassLoader(PathClassLoaderFactory.java:43)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:58)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:540)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:573)
at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1990)
at android.app.LoadedApk.getResources(LoadedApk.java:799)
at android.app.ContextImpl.(ContextImpl.java:2218)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2163)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5546)
at android.app.ActivityThread.-wrap2(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1637)
… 6 more

Solution:

In the activity_main.xml I wrote WZCameraView instead of WOWZCameraView.

I was confused by this other tutorial that I firstly read: it’s not updated with the new classes names:

https://www.wowza.com/community/articles/48125/building-simple-ios-and-android-streaming-apps.html