음성인식 Newtone-6.0.1 arr 추가시 오류

음성인식 라이브러리를 사용하려고 하는데…오류가 나서 글 남깁니다.
(카카오링크도 같이 사용중입니다.)

아래와 같이 gradle에 추가하면 문제 없이 잘 됩니다…
// 카카오톡 1.17.0
compile 'com.kakao.sdk:network:1.17.0’
compile 'com.kakao.sdk:util:1.17.0’
compile 'com.kakao.sdk:auth:1.17.0’
compile 'com.kakao.sdk:usermgmt:1.17.0’
compile 'com.kakao.sdk:kakaolink:1.17.0’
compile ‘com.kakao.sdk:message-template:1.17.0’
// 카카오톡 음성검색
compile ‘com.kakao.sdk:newtone:6.0.1’

허나 빌드하는 환경이 외부망이 막힌곳이라 각 라이브러리 aar을 받아 추가하였습니다.
그후 gradle에
// 카카오톡 1.17.0
compile project(’:common-1.17.0’)
compile project(’:auth-1.17.0’)
compile project(’:util-1.17.0’)
compile project(’:network-1.17.0’)
compile project(’:usermgmt-1.17.0’)
compile project(’:kakaolink-1.17.0’)
compile project(’:message-template-1.17.0’)
// 카카오톡 음성검색
compile project(’:newtone-6.0.1’)

위와 같이 추가하였는데…
앱 실행은 되나 음성인식 Activity로 가면 Runtime error가 나면서 앱이 죽습니다.

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.test, PID: 11230
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/dialoid/speech/recognition/SpeechRecognizer;
at com.kakao.sdk.newtoneapi.SpeechRecognizerManager.initializeLibrary(SpeechRecognizerManager.java:70)
at com.test.activity.SpeechActivity.onCreate(SpeechActivity.java:58)
at android.app.Activity.performCreate(Activity.java:7183)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1220)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2910)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.dialoid.speech.recognition.SpeechRecognizer” on path: DexPathList[[zip file “/data/app/com.test-zDAP6g8tB9RzJuoFOr0hGw==/base.apk”],nativeLibraryDirectories=[/data/app/com.test-zDAP6g8tB9RzJuoFOr0hGw==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.kakao.sdk.newtoneapi.SpeechRecognizerManager.initializeLibrary(SpeechRecognizerManager.java:70)
at com.test.activity.SpeechActivity.onCreate(SpeechActivity.java:58)
at android.app.Activity.performCreate(Activity.java:7183)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1220)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2910)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

무엇이 문제인가요…

https://devtalk.kakao.com/t/topic/73786

중복 이슈.