java - NoClassDefException, starting activity from another package -
This is my first time using Eclipse ADT and I'm having trouble starting a new activity from a different package . I am trying to start with com.furgus.cam.CameraActivity com.furgus.swipe.LobbyActivity , but I have a NoClassDefFoundError Continue from being unsuccessful, I'm not sure what I'm doing wrong and I'm in need of guidance to properly link my camera activity.
Any and all help would be greatly appreciated thanks.
AndroidManifest.xml
& lt; Manifest xmlns: android = "http://schemas.android.com/ apk / res / android" package = "com.furgus" Android: versionCode = "1" Android: versionName = "1.0" & gt; & Lt; Use-sdk android: minSdkVersion = "14" Android: targetSdkVersion = "17" /> Android: Android: Recyclable = "True" Android: SmallSewins = "True" Android: Common Activation = "True" Android: Large Scan = "True" Android: anyDensity = "true" /> & Lt; Usage-permission Android: name = "android.permission.INTERNET" /> & Lt; Usage-permission Android: name = "android.permission.CAMERA" /> & Lt; Use-enabled Android: name = "android.hardware.camera" Android: Required = "False" /> & Lt; Usage-feature Android: name = "android.hardware.camera.autofocus" Android: Required = "False" /> & Lt; Use-enabled Android: name = "android.hardware.camera.front" Android: Required = "False" /> & Lt; Use-enabled Android: name = "android.hardware.camera.front.autofocus" Android: Required = "Wrong" /> & Lt; Android Android: allowBackup = "true" android: icon = "@draubable / IC_Luncher" Android: label = "@ string / app_name" Android: Theme = "@ Style / Aaptim" & gt; & Lt; Service Android: Name = "Swipe.Socket Service" Android: Icon = "@ Draubable / IC_Luncher" Android: Label = "Socket_Service" & gt; & Lt; / Services & gt; & Lt; Activity Android: name = ". Swipe.LobbyActivity" Android: label = "@ string / app_name" Android: Theme = "@Android: Style / Theme. No Title Beer" /> & Lt; Android: name = ".cam.CameraActivity" android: label = "@ string / app_name" Android: Screen Orientation = "Landscape" Android: Theme = "@Android: Style / Theme.back.No titles bore fullscreens" / & Gt; & Lt; / Application & gt;
LobbyActivity.java
if (str.equalsIgnoreCase (KEY_START_GAME)) {newIntent = new intent (CONTEXT, CameraActivity.class); Bundle extra = new bundle (); Extras.putString (KEY_USERNAME, username); Extras.putString (KEY_MATCH, matches); Extras.putString (KEY_TEAM, Team); NewIntent.putExtras (additional); StartActivity (newIntent); }
Logkat
02-18 13: 51: 00.90 9: I / dalvikvm (12358): solution for LOOM / fergus / cam / camera activity Failed to; Interface 695 'Lorg / OpenCV / Android / Cambridge Viewbiz $ CVCAMAraviliston 2;' 02-18 13: 51: 00.90 9: W / DelWikm (12358): Class 'Elcom / Fergus / Cam / Camera Activity Link;' Unsuccessful 02-18 13: 51: 00.90 9: E / Dalvikam (12358): The method 'com.furgus.cam.CameraActivity' could not be found, the method referred to com.furgus.swipe.Lobby.Features.Update UI 02- 18 13:51: 00.90 9: W / DelWikm (12358): unable to solve VFY: Const-Class 565 (LCom / Fergus / Cam / camera activity;) in Elcom / Fergus / Swipe / Lobby;
Try it out:
Go to Project / Properties / Java Create paths / orders and exports - Make sure there is a check in front of the Android dependency and support library, if you use it. Enter all the checkboxes and click on Apply and clear the project.
Comments
Post a Comment