신청서에 날짜와 시간을 선택하려면 android wheel을 (를) 사용하고 있습니다. 하지만이 라이브러리를 사용하는 동안 나는이 NoClassDefFoundError
에 질려있다.응용 프로그램에서 타사 라이브러리를 사용하는 동안 NoClassDefFoundError 문제를 해결하는 방법은 무엇입니까?
libs
폴더에 wheel.jar
을 넣었지만 런타임에는 여전히 오류가 발생합니다.
08-08 15:19:22.078: E/AndroidRuntime(21223): FATAL EXCEPTION: main 08-08 15:19:22.078: E/AndroidRuntime(21223): java.lang.NoClassDefFoundError: kankan.wheel.R$drawable 08-08 15:19:22.078: E/AndroidRuntime(21223): at kankan.wheel.widget.WheelView.initResourcesIfNecessary(WheelView.java:427) 08-08 15:19:22.078: E/AndroidRuntime(21223): at kankan.wheel.widget.WheelView.calculateLayoutWidth(WheelView.java:482) 08-08 15:19:22.078: E/AndroidRuntime(21223): at kankan.wheel.widget.WheelView.onMeasure(WheelView.java:518) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.view.View.measure(View.java:12775) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1385) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1027) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.widget.LinearLayout.onMeasure(LinearLayout.java:565) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.view.View.measure(View.java:12775) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:594) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:376) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.view.View.measure(View.java:12775) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:594) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:376) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.view.View.measure(View.java:12775) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.widget.FrameLayout.onMeasure(FrameLayout.java:293) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.view.View.measure(View.java:12775) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.widget.FrameLayout.onMeasure(FrameLayout.java:293) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.view.View.measure(View.java:12775) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.widget.FrameLayout.onMeasure(FrameLayout.java:293) 08-08 15:19:22.078: E/AndroidRuntime(21223): at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2240) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.view.View.measure(View.java:12775) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1151) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2539) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.os.Handler.dispatchMessage(Handler.java:99) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.os.Looper.loop(Looper.java:137) 08-08 15:19:22.078: E/AndroidRuntime(21223): at android.app.ActivityThread.main(ActivityThread.java:4514) 08-08 15:19:22.078: E/AndroidRuntime(21223): at java.lang.reflect.Method.invokeNative(Native Method) 08-08 15:19:22.078: E/AndroidRuntime(21223): at java.lang.reflect.Method.invoke(Method.java:511) 08-08 15:19:22.078: E/AndroidRuntime(21223): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790) 08-08 15:19:22.078: E/AndroidRuntime(21223): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557) 08-08 15:19:22.078: E/AndroidRuntime(21223): at dalvik.system.NativeStart.main(Native Method) 08-08 15:24:27.601: I/Process(21223): Sending signal. PID: 21223 SIG: 9
http://stackoverflow.com/a/10046725/1289716 – MAC
'libs와 -> wheel.jar -> 오른쪽 클릭 -> 빌드 경로 ->'빌드 경로에 추가. – user370305
나는 .. 휠에 대한 xml이 없다고 생각한다. xml을 드로어 블에 넣어야한다. –