question

scott-li-1234 avatar image
scott-li-1234 asked

“Unfortunately, Alexa Voice Service Companion has stopped” in China

Following "Alexa Voice Service Sample App", when running mobile app on Android, the message “Unfortunately, Alexa Voice Service Companion has stopped” prompted, then app quit. Besides, I cannot find the place to set device address to https://10.0.2.2:8443.
alexa voice service
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Eric@Amazon avatar image
Eric@Amazon answered
Could you provide a logcat output? It will help debug why the Android app crashed. As far as the place to put 10.0.2.2:8443, there should be a text box in the UI of the Android app. You're not setting its IP address, you're just telling the app what it is.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

scott-li-1234 avatar image
scott-li-1234 answered
03-24 16:51:56.808: E/AndroidRuntime(1111): FATAL EXCEPTION: main 03-24 16:51:56.808: E/AndroidRuntime(1111): Process: com.amazon.alexa.avs.companion, PID: 1111 03-24 16:51:56.808: E/AndroidRuntime(1111): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.amazon.alexa.avs.companion/com.amazon.alexa.avs.companion.LoginWithAmazonActivity}: java.lang.ClassNotFoundException: Didn't find class "com.amazon.alexa.avs.companion.LoginWithAmazonActivity" on path: DexPathList[[zip file "/data/app/com.amazon.alexa.avs.companion-1/base.apk"],nativeLibraryDirectories=[/data/app/com.amazon.alexa.avs.companion-1/lib/arm, /vendor/lib, /system/lib]] 03-24 16:51:56.808: E/AndroidRuntime(1111): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2327) 03-24 16:51:56.808: E/AndroidRuntime(1111): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 03-24 16:51:56.808: E/AndroidRuntime(1111): at android.app.ActivityThread.-wrap11(ActivityThread.java) 03-24 16:51:56.808: E/AndroidRuntime(1111): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 03-24 16:51:56.808: E/AndroidRuntime(1111): at android.os.Handler.dispatchMessage(Handler.java:102) 03-24 16:51:56.808: E/AndroidRuntime(1111): at android.os.Looper.loop(Looper.java:148) 03-24 16:51:56.808: E/AndroidRuntime(1111): at android.app.ActivityThread.main(ActivityThread.java:5417) 03-24 16:51:56.808: E/AndroidRuntime(1111): at java.lang.reflect.Method.invoke(Native Method) 03-24 16:51:56.808: E/AndroidRuntime(1111): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 03-24 16:51:56.808: E/AndroidRuntime(1111): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 03-24 16:51:56.808: E/AndroidRuntime(1111): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.amazon.alexa.avs.companion.LoginWithAmazonActivity" on path: DexPathList[[zip file "/data/app/com.amazon.alexa.avs.companion-1/base.apk"],nativeLibraryDirectories=[/data/app/com.amazon.alexa.avs.companion-1/lib/arm, /vendor/lib, /system/lib]] 03-24 16:51:56.808: E/AndroidRuntime(1111): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) 03-24 16:51:56.808: E/AndroidRuntime(1111): at java.lang.ClassLoader.loadClass(ClassLoader.java:511) 03-24 16:51:56.808: E/AndroidRuntime(1111): at java.lang.ClassLoader.loadClass(ClassLoader.java:469) 03-24 16:51:56.808: E/AndroidRuntime(1111): at android.app.Instrumentation.newActivity(Instrumentation.java:1067) 03-24 16:51:56.808: E/AndroidRuntime(1111): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317) 03-24 16:51:56.808: E/AndroidRuntime(1111): ... 9 more 03-24 16:51:56.808: E/AndroidRuntime(1111): Suppressed: java.lang.ClassNotFoundException: com.amazon.alexa.avs.companion.LoginWithAmazonActivity 03-24 16:51:56.808: E/AndroidRuntime(1111): at java.lang.Class.classForName(Native Method) 03-24 16:51:56.808: E/AndroidRuntime(1111): at java.lang.BootClassLoader.findClass(ClassLoader.java:781) 03-24 16:51:56.808: E/AndroidRuntime(1111): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) 03-24 16:51:56.808: E/AndroidRuntime(1111): at java.lang.ClassLoader.loadClass(ClassLoader.java:504) 03-24 16:51:56.808: E/AndroidRuntime(1111): ... 12 more 03-24 16:51:56.808: E/AndroidRuntime(1111): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Eric@Amazon avatar image
Eric@Amazon answered
According to Stack Overflow, it seems this issue may be caused by conflicting compatibility libraries http://stackoverflow.com/questions/19523167/android-classnotfoundexception-didnt-find-class-on-path I'd suggest going through your dependencies and verifying that they're all correct and without conflicts. The Stack Overflow post contains many suggestions along these lines.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.