티스토리 뷰
[아이오닉] 전화번호 인증 - Facebook AccountKit
ionic cordova run android
안드로이드 플랫폼 실행시 다음과 같은 에러가 발생할 경우 조치
06-27 13:21:25.506 2071-2071/com.ahzimat.clicks E/AndroidRuntime: FATAL EXCEPTION: main Process: com.ahzimat.clicks, PID: 2071 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/auth/api/Auth; at com.facebook.accountkit.ui.AccountKitActivity.onCreate(AccountKitActivity.java:281) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2442) at android.app.ActivityThread.access$800(ActivityThread.java:156) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1351) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:211) at android.app.ActivityThread.main(ActivityThread.java:5371) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:945) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:740) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.auth.api.Auth" on path: DexPathList[[zip file "/data/app/com.ahzimat.clicks-2/base.apk", zip file "/data/app/com.ahzimat.clicks-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.ahzimat.clicks-2/split_lib_slice_0_apk.apk", zip file "/data/app/com.ahzimat.clicks-2/split_lib_slice_1_apk.apk", zip file "/data/app/com.ahzimat.clicks-2/split_lib_slice_2_apk.apk", zip file "/data/app/com.ahzimat.clicks-2/split_lib_slice_3_apk.apk", zip file "/data/app/com.ahzimat.clicks-2/split_lib_slice_4_apk.apk", zip file "/data/app/com.ahzimat.clicks-2/split_lib_slice_5_apk.apk", zip file "/data/app/com.ahzimat.clicks-2/split_lib_slice_6_apk.apk", zip file "/data/app/com.ahzimat.clicks-2/split_lib_slice_7_apk.apk", zip file "/data/app/com.ahzimat.clicks-2/split_lib_slice_8_apk.apk", zip file "/data/app/com.ahzimat.clicks-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) at com.facebook.accountkit.ui.AccountKitActivity.onCreate(AccountKitActivity.java:281) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2442) at android.app.ActivityThread.access$800(ActivityThread.java:156) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1351) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:211) at android.app.ActivityThread.main(ActivityThread.java:5371) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:945) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:740) Suppressed: java.lang.ClassNotFoundException: com.google.android.gms.auth.api.Auth at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:504) ... 15 more Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Android studio에서 facebook accountkit 에러날때
root/app/build.gradle 파일에서
변경전 : compile "com.facebook.android:account-kit-sdk:4.+”
변경후 : compile "com.facebook.android:account-kit-sdk:4.23.0”
코드 변경 후
메뉴>build>clean project 후
재빌드 하면 에러 해결
참고 : https://github.com/fbsamples/account-kit-samples-for-android/issues/27
'웹개발 > ionic' 카테고리의 다른 글
[아이오닉] 전화번호 인증 - Facebook AccountKit (0) | 2018.07.30 |
---|---|
[아이오닉] ionic 2.0 Deploy (0) | 2017.01.21 |
ionic2 앱개발 시작하기 (0) | 2017.01.20 |
[아이오닉] Ionic Framework 하이브리드앱개발 (0) | 2016.12.04 |
- Total
- Today
- Yesterday
- module exports
- npm
- jQuery
- Angular CLI
- git branch
- Facebook AccountKit
- 폼 유효성 검사
- 옵저버블
- Angular
- 한영 변환
- git merge
- End-to-End testing
- Webpack
- 의존성 주입
- git commit
- angular2
- typeScript
- 번들링
- NgForm
- Typescript 패키지
- Gulp
- phone number
- ionic2
- 웹 소켓 프로토콜
- 아이오닉2
- paralles desktop
- Grunt
- password validation
- Routes
- 아이오닉
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |