Android AWS CognitoCachingCredentialsProvider crashes app in API 17 - JellyBean - android

I'm having a problem running my app on older versions of Android because i get an error when trying to instantiate CognitoCachingCredentialsProvider.
CognitoCachingCredentialsProvider credentialsProvider = new CognitoCachingCredentialsProvider(
this,
this.getString(R.string.identity_pool_id),
Regions.DEFAULT_REGION);
This works on Lollipop 5.0, although it crashes my app on Jellybean 4.4.2 (API 17). I haven't tried other versions of Android yet because i need it to work on Jellybean and above.
Does anyone know why this would give me an error on Jellybean and not Lollipop? The code does not go to my try/catch block in Jellybean, instead it just kills the app and Logcat provides this error:
10-12 05:48:53.271 1288-1288/? E/dalvikvm: Could not find class 'com.amazonaws.auth.CognitoCachingCredentialsProvider$1', referenced from method com.amazonaws.auth.CognitoCachingCredentialsProvider.<init>
10-12 05:48:53.271 1288-1288/? E/dalvikvm: Could not find class 'com.amazonaws.auth.CognitoCachingCredentialsProvider$1', referenced from method com.amazonaws.auth.CognitoCachingCredentialsProvider.<init>
10-12 05:48:53.271 1288-1288/? E/dalvikvm: Could not find class 'com.amazonaws.auth.CognitoCachingCredentialsProvider$1', referenced from method com.amazonaws.auth.CognitoCachingCredentialsProvider.<init>
10-12 05:48:53.271 1288-1288/? E/dalvikvm: Could not find class 'com.amazonaws.auth.CognitoCachingCredentialsProvider$1', referenced from method com.amazonaws.auth.CognitoCachingCredentialsProvider.<init>
10-12 05:48:53.271 1288-1288/? E/dalvikvm: Could not find class 'com.amazonaws.auth.CognitoCachingCredentialsProvider$1', referenced from method com.amazonaws.auth.CognitoCachingCredentialsProvider.<init>
10-12 05:48:53.271 1288-1288/? E/dalvikvm: Could not find class 'com.amazonaws.auth.CognitoCachingCredentialsProvider$1', referenced from method com.amazonaws.auth.CognitoCachingCredentialsProvider.<init>
10-12 05:48:53.271 1288-1288/? E/dalvikvm: Could not find class 'com.amazonaws.auth.CognitoCachingCredentialsProvider$1', referenced from method com.amazonaws.auth.CognitoCachingCredentialsProvider.<init>
10-12 05:48:53.271 1288-1288/? E/dalvikvm: Could not find class 'com.amazonaws.auth.CognitoCachingCredentialsProvider$1', referenced from method com.amazonaws.auth.CognitoCachingCredentialsProvider.<init>
10-12 05:48:53.271 1288-1288/? E/dalvikvm: Could not find class 'com.amazonaws.auth.CognitoCachingCredentialsProvider$1', referenced from method com.amazonaws.auth.CognitoCachingCredentialsProvider.<init>
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: FATAL EXCEPTION: main
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: java.lang.VerifyError: com/amazonaws/auth/CognitoCachingCredentialsProvider
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: at au.appsprout.com.dropmap.Start.onCreate(Start.java:38)
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391)
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: at android.app.ActivityThread.access$1300(ActivityThread.java:141)
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: at android.os.Looper.loop(Looper.java:137)
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5041)
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:511)
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
10-12 05:48:53.283 1288-1288/? E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)

Found the solution. It was to do with MultiDex not working on older versions of Android (before Lollipop). Here is a link to the solution for anyone with this problem: Unable to execute dex: method ID not in [0, 0xffff]: 65536

Related

having null pointer exception(not always) when started using action bar sherlock library

So i am using action bar sherlock library for the action bar in my app.Even though i am not sure the problem occur because of that , but i feel like its due to abs? but the weird thing, when i restart the phone and ADT and delete the app then clean the project and run the project it works again.But then while its working fine,then it might suddenly stop working again. I need to fix this problem.Thank million!
10-12 23:40:51.905: I/dalvikvm(1528): Could not find method
com.actionbarsherlock.internal.nineoldandroids.widget.NineFrameLayout.onHoverEvent,
referenced from method
com.actionbarsherlock.internal.widget.ActionBarContainer.onHoverEvent
10-12 23:40:51.905: W/dalvikvm(1528): VFY: unable to resolve virtual
method 4266:
Lcom/actionbarsherlock/internal/nineoldandroids/widget/NineFrameLayout;.onHoverEvent
(Landroid/view/MotionEvent;)Z 10-12 23:40:51.905: D/dalvikvm(1528):
VFY: replacing opcode 0x6f at 0x0000 10-12 23:40:51.905:
D/dalvikvm(1528): VFY: dead code 0x0003-0004 in
Lcom/actionbarsherlock/internal/widget/ActionBarContainer;.onHoverEvent
(Landroid/view/MotionEvent;)Z 10-12 23:40:51.915: I/dalvikvm(1528):
Could not find method android.widget.FrameLayout.getAlpha, referenced
from method
com.actionbarsherlock.internal.nineoldandroids.widget.NineFrameLayout.getAlpha
10-12 23:40:51.915: W/dalvikvm(1528): VFY: unable to resolve virtual
method 3019: Landroid/widget/FrameLayout;.getAlpha ()F 10-12
23:40:51.915: D/dalvikvm(1528): VFY: replacing opcode 0x6f at 0x000b
10-12 23:40:51.915: D/dalvikvm(1528): VFY: dead code 0x000e-000f in
Lcom/actionbarsherlock/internal/nineoldandroids/widget/NineFrameLayout;.getAlpha
()F 10-12 23:40:51.915: I/dalvikvm(1528): Could not find method
android.widget.FrameLayout.getTranslationY, referenced from method
com.actionbarsherlock.internal.nineoldandroids.widget.NineFrameLayout.getTranslationY
10-12 23:40:51.915: W/dalvikvm(1528): VFY: unable to resolve virtual
method 3020: Landroid/widget/FrameLayout;.getTranslationY ()F 10-12
23:40:51.915: D/dalvikvm(1528): VFY: replacing opcode 0x6f at 0x000b
10-12 23:40:51.915: D/dalvikvm(1528): VFY: dead code 0x000e-000f in
Lcom/actionbarsherlock/internal/nineoldandroids/widget/NineFrameLayout;.getTranslationY
()F 10-12 23:40:51.915: I/dalvikvm(1528): Could not find method
android.widget.FrameLayout.setAlpha, referenced from method
com.actionbarsherlock.internal.nineoldandroids.widget.NineFrameLayout.setAlpha
10-12 23:40:51.915: W/dalvikvm(1528): VFY: unable to resolve virtual
method 3023: Landroid/widget/FrameLayout;.setAlpha (F)V 10-12
23:40:51.915: D/dalvikvm(1528): VFY: replacing opcode 0x6f at 0x000a
10-12 23:40:51.915: D/dalvikvm(1528): VFY: dead code 0x000d-000d in
Lcom/actionbarsherlock/internal/nineoldandroids/widget/NineFrameLayout;.setAlpha
(F)V 10-12 23:40:51.915: I/dalvikvm(1528): Could not find method
android.widget.FrameLayout.setTranslationY, referenced from method
com.actionbarsherlock.internal.nineoldandroids.widget.NineFrameLayout.setTranslationY
10-12 23:40:51.915: W/dalvikvm(1528): VFY: unable to resolve virtual
method 3030: Landroid/widget/FrameLayout;.setTranslationY (F)V 10-12
23:40:51.915: D/dalvikvm(1528): VFY: replacing opcode 0x6f at 0x000a
10-12 23:40:51.915: D/dalvikvm(1528): VFY: dead code 0x000d-000d in
Lcom/actionbarsherlock/internal/nineoldandroids/widget/NineFrameLayout;.setTranslationY
(F)V 10-12 23:40:51.925: I/dalvikvm(1528): Could not find method
android.content.pm.PackageManager.getActivityLogo, referenced from
method com.actionbarsherlock.internal.widget.ActionBarView. 10-12
23:40:51.925: W/dalvikvm(1528): VFY: unable to resolve virtual method
300: Landroid/content/pm/PackageManager;.getActivityLogo
(Landroid/content/ComponentName;)Landroid/graphics/drawable/Drawable;
10-12 23:40:51.925: D/dalvikvm(1528): VFY: replacing opcode 0x6e at
0x01d1 10-12 23:40:51.925: I/dalvikvm(1528): Could not find method
android.content.pm.ApplicationInfo.loadLogo, referenced from method
com.actionbarsherlock.internal.widget.ActionBarView. 10-12
23:40:51.925: W/dalvikvm(1528): VFY: unable to resolve virtual method
296: Landroid/content/pm/ApplicationInfo;.loadLogo
(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;
10-12 23:40:51.925: D/dalvikvm(1528): VFY: replacing opcode 0x6e at
0x01df 10-12 23:40:51.925: D/dalvikvm(1528): VFY: dead code
0x01d4-01d8 in Lcom/actionbarsherlock/internal/widget/ActionBarView;.
(Landroid/content/Context;Landroid/util/AttributeSet;)V 10-12
23:40:51.925: D/dalvikvm(1528): VFY: dead code 0x01e2-01e8 in
Lcom/actionbarsherlock/internal/widget/ActionBarView;.
(Landroid/content/Context;Landroid/util/AttributeSet;)V 10-12
23:40:51.955: I/dalvikvm(1528): Could not find method
android.view.ViewGroup.getAlpha, referenced from method
com.actionbarsherlock.internal.nineoldandroids.view.NineViewGroup.getAlpha
10-12 23:40:51.955: W/dalvikvm(1528): VFY: unable to resolve virtual
method 2789: Landroid/view/ViewGroup;.getAlpha ()F 10-12 23:40:51.955:
D/dalvikvm(1528): VFY: replacing opcode 0x6f at 0x000b 10-12
23:40:51.955: D/dalvikvm(1528): VFY: dead code 0x000e-000f in
Lcom/actionbarsherlock/internal/nineoldandroids/view/NineViewGroup;.getAlpha
()F 10-12 23:40:51.955: I/dalvikvm(1528): Could not find method
android.view.ViewGroup.getTranslationX, referenced from method
com.actionbarsherlock.internal.nineoldandroids.view.NineViewGroup.getTranslationX
10-12 23:40:51.955: W/dalvikvm(1528): VFY: unable to resolve virtual
method 2794: Landroid/view/ViewGroup;.getTranslationX ()F 10-12
23:40:51.955: D/dalvikvm(1528): VFY: replacing opcode 0x6f at 0x000b
10-12 23:40:51.955: D/dalvikvm(1528): VFY: dead code 0x000e-000f in
Lcom/actionbarsherlock/internal/nineoldandroids/view/NineViewGroup;.getTranslationX
()F 10-12 23:40:51.955: I/dalvikvm(1528): Could not find method
android.view.ViewGroup.getTranslationY, referenced from method
com.actionbarsherlock.internal.nineoldandroids.view.NineViewGroup.getTranslationY
10-12 23:40:51.955: W/dalvikvm(1528): VFY: unable to resolve virtual
method 2795: Landroid/view/ViewGroup;.getTranslationY ()F 10-12
23:40:51.955: D/dalvikvm(1528): VFY: replacing opcode 0x6f at 0x000b
10-12 23:40:51.955: D/dalvikvm(1528): VFY: dead code 0x000e-000f in
Lcom/actionbarsherlock/internal/nineoldandroids/view/NineViewGroup;.getTranslationY
()F 10-12 23:40:51.955: I/dalvikvm(1528): Could not find method
android.view.ViewGroup.setAlpha, referenced from method
com.actionbarsherlock.internal.nineoldandroids.view.NineViewGroup.setAlpha
10-12 23:40:51.955: W/dalvikvm(1528): VFY: unable to resolve virtual
method 2810: Landroid/view/ViewGroup;.setAlpha (F)V 10-12
23:40:51.955: D/dalvikvm(1528): VFY: replacing opcode 0x6f at 0x000a
10-12 23:40:51.955: D/dalvikvm(1528): VFY: dead code 0x000d-000d in
Lcom/actionbarsherlock/internal/nineoldandroids/view/NineViewGroup;.setAlpha
(F)V 10-12 23:40:51.955: I/dalvikvm(1528): Could not find method
android.view.ViewGroup.setTranslationX, referenced from method
com.actionbarsherlock.internal.nineoldandroids.view.NineViewGroup.setTranslationX
10-12 23:40:51.955: W/dalvikvm(1528): VFY: unable to resolve virtual
method 2814: Landroid/view/ViewGroup;.setTranslationX (F)V 10-12
23:40:51.955: D/dalvikvm(1528): VFY: replacing opcode 0x6f at 0x000a
10-12 23:40:51.955: D/dalvikvm(1528): VFY: dead code 0x000d-000d in
Lcom/actionbarsherlock/internal/nineoldandroids/view/NineViewGroup;.setTranslationX
(F)V 10-12 23:40:51.955: I/dalvikvm(1528): Could not find method
android.view.ViewGroup.setTranslationY, referenced from method
com.actionbarsherlock.internal.nineoldandroids.view.NineViewGroup.setTranslationY
10-12 23:40:51.955: W/dalvikvm(1528): VFY: unable to resolve virtual
method 2815: Landroid/view/ViewGroup;.setTranslationY (F)V 10-12
23:40:51.955: D/dalvikvm(1528): VFY: replacing opcode 0x6f at 0x000a
10-12 23:40:51.955: D/dalvikvm(1528): VFY: dead code 0x000d-000d in
Lcom/actionbarsherlock/internal/nineoldandroids/view/NineViewGroup;.setTranslationY
(F)V 10-12 23:40:51.985: D/dalvikvm(1528): GC_EXTERNAL_ALLOC freed
1437 objects / 98064 bytes in 28ms 10-12 23:40:52.285:
I/dalvikvm(1528): Could not find method
com.actionbarsherlock.internal.widget.ActionBarView$HomeView.onHoverEvent,
referenced from method
com.actionbarsherlock.internal.widget.ActionBarView$HomeView.dispatchHoverEvent
10-12 23:40:52.285: W/dalvikvm(1528): VFY: unable to resolve virtual
method 5127:
Lcom/actionbarsherlock/internal/widget/ActionBarView$HomeView;.onHoverEvent
(Landroid/view/MotionEvent;)Z 10-12 23:40:52.285: D/dalvikvm(1528):
VFY: replacing opcode 0x6e at 0x0000 10-12 23:40:52.285:
D/dalvikvm(1528): VFY: dead code 0x0003-0004 in
Lcom/actionbarsherlock/internal/widget/ActionBarView$HomeView;.dispatchHoverEvent
(Landroid/view/MotionEvent;)Z 10-12 23:40:52.285: I/dalvikvm(1528):
Could not find method
android.widget.FrameLayout.onPopulateAccessibilityEvent, referenced
from method
com.actionbarsherlock.internal.widget.ActionBarView$HomeView.onPopulateAccessibilityEvent
10-12 23:40:52.285: W/dalvikvm(1528): VFY: unable to resolve virtual
method 3022: Landroid/widget/FrameLayout;.onPopulateAccessibilityEvent
(Landroid/view/accessibility/AccessibilityEvent;)V 10-12 23:40:52.285:
D/dalvikvm(1528): VFY: replacing opcode 0x6f at 0x0006 10-12
23:40:52.345: D/AndroidRuntime(1528): Shutting down VM 10-12
23:40:52.345: W/dalvikvm(1528): threadid=1: thread exiting with
uncaught exception (group=0x400259f8) 10-12 23:40:52.355:
E/AndroidRuntime(1528): FATAL EXCEPTION: main 10-12 23:40:52.355:
E/AndroidRuntime(1528): java.lang.RuntimeException: Unable to start
activity
ComponentInfo{com.id11313982.freejokesapp/com.id11313982.freejokesapp.activities.MainActivity}: java.lang.NullPointerException 10-12 23:40:52.355:
E/AndroidRuntime(1528): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2787)
10-12 23:40:52.355: E/AndroidRuntime(1528): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
10-12 23:40:52.355: E/AndroidRuntime(1528): at
android.app.ActivityThread.access$2300(ActivityThread.java:135) 10-12
23:40:52.355: E/AndroidRuntime(1528): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
10-12 23:40:52.355: E/AndroidRuntime(1528): at
android.os.Handler.dispatchMessage(Handler.java:99) 10-12
23:40:52.355: E/AndroidRuntime(1528): at
android.os.Looper.loop(Looper.java:145) 10-12 23:40:52.355:
E/AndroidRuntime(1528): at
android.app.ActivityThread.main(ActivityThread.java:4937) 10-12
23:40:52.355: E/AndroidRuntime(1528): at
java.lang.reflect.Method.invokeNative(Native Method) 10-12
23:40:52.355: E/AndroidRuntime(1528): at
java.lang.reflect.Method.invoke(Method.java:521) 10-12 23:40:52.355:
E/AndroidRuntime(1528): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-12 23:40:52.355: E/AndroidRuntime(1528): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 10-12
23:40:52.355: E/AndroidRuntime(1528): at
dalvik.system.NativeStart.main(Native Method) 10-12 23:40:52.355:
E/AndroidRuntime(1528): Caused by: java.lang.NullPointerException
10-12 23:40:52.355: E/AndroidRuntime(1528): at
com.id11313982.freejokesapp.activities.MainActivity.networkStatusMessage(MainActivity.java:202)
10-12 23:40:52.355: E/AndroidRuntime(1528): at
com.id11313982.freejokesapp.activities.MainActivity.onCreate(MainActivity.java:78) 10-12 23:40:52.355: E/AndroidRuntime(1528): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1069)
10-12 23:40:52.355: E/AndroidRuntime(1528): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2751)
10-12 23:40:52.355: E/AndroidRuntime(1528): ... 11 more
public void networkStatusMessage()
{
mJokeView = (TextView) findViewById(R.id.joke_portion_textview_main_activity);
HelperClass.ShowErrorMessage(getBaseContext(), getString(R.string.connection_not_available_status_localjokeread));
mJokeView.setText(getString(R.string.connection_not_available_status_localjokeread));
mJokeView.setGravity(Gravity.CENTER);
mJokeTitleView.setText("");
}
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
actionBar=getSupportActionBar();
actionBar.setDisplayShowTitleEnabled(false);
helperClass = new HelperClass();
stillRandomJoke = true;
if(helperClass.isNetworkAvailable(MainActivity.this))
{
dataBundle = new Bundle();
dataBundle = helperClass.restoreCategoryPreference(MainActivity.this);
if(dataBundle.getString(CATEGORY_NAME) != null && dataBundle.getInt(CATEGORY_ID) != 0)
{
startJokeId = dataBundle.getInt(FROM_ID);
endJokeId = dataBundle.getInt(TO_ID);
currentJokeId = helperClass.restoreJokeIDPreference(MainActivity.this);
stillRandomJoke = false;
IssueHTTPRequestForEachJoke(SELECTED_JOKE_URL + currentJokeId);
}
else
IssueHTTPRequestForEachJoke(RANDOM_JOKE_URL);
}
else
networkStatusMessage();
}
My guess is that line 202 of networkStatusMessage is this line:
mJokeTitleView.setText("");
and that mJokeTitleView is null because you have never set it.

Google Map does not load on emulator with Jelly Bean 4.3 [duplicate]

I am using google maps api v2 and everything was working fine . today morning i updated the sdk and now maps are not working. Tried a lot of things like importing the lib project again and all but nothing seems to work . Plz help.
This is the logcat output
05-16 08:53:34.327: E/dalvikvm(3422): Could not find class 'com.google.android.gms.maps.model.LatLng', referenced from method com.apptree.de_luxe.InfoActivity.<clinit>
05-16 08:53:34.327: W/dalvikvm(3422): VFY: unable to resolve new-instance 170 (Lcom/google/android/gms/maps/model/LatLng;) in Lcom/apptree/de_luxe/InfoActivity;
05-16 08:53:34.327: D/dalvikvm(3422): VFY: replacing opcode 0x22 at 0x0000
05-16 08:53:34.327: E/dalvikvm(3422): Could not find class 'com.google.android.gms.maps.model.MarkerOptions', referenced from method com.apptree.de_luxe.InfoActivity.setUpMap
05-16 08:53:34.327: W/dalvikvm(3422): VFY: unable to resolve new-instance 172 (Lcom/google/android/gms/maps/model/MarkerOptions;) in Lcom/apptree/de_luxe/InfoActivity;
05-16 08:53:34.327: D/dalvikvm(3422): VFY: replacing opcode 0x22 at 0x0002
05-16 08:53:34.347: E/dalvikvm(3422): Could not find class 'com.google.android.gms.maps.MapFragment', referenced from method com.apptree.de_luxe.InfoActivity.setUpMapIfNeeded
05-16 08:53:34.347: W/dalvikvm(3422): VFY: unable to resolve check-cast 169 (Lcom/google/android/gms/maps/MapFragment;) in Lcom/apptree/de_luxe/InfoActivity;
05-16 08:53:34.357: D/dalvikvm(3422): VFY: replacing opcode 0x1f at 0x000f
05-16 08:53:34.367: D/dalvikvm(3422): DexOpt: unable to opt direct call 0x029b at 0x0c in Lcom/apptree/de_luxe/InfoActivity;.<clinit>
05-16 08:53:34.367: D/dalvikvm(3422): DexOpt: unable to opt direct call 0x029c at 0x04 in Lcom/apptree/de_luxe/InfoActivity;.setUpMap
05-16 08:53:34.387: W/dalvikvm(3422): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/apptree/de_luxe/InfoActivity;
05-16 08:53:34.387: W/dalvikvm(3422): Class init failed in newInstance call (Lcom/apptree/de_luxe/InfoActivity;)
05-16 08:53:34.387: D/AndroidRuntime(3422): Shutting down VM
05-16 08:53:34.398: W/dalvikvm(3422): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
05-16 08:53:34.457: E/AndroidRuntime(3422): FATAL EXCEPTION: main
05-16 08:53:34.457: E/AndroidRuntime(3422): java.lang.ExceptionInInitializerError
05-16 08:53:34.457: E/AndroidRuntime(3422): at java.lang.Class.newInstanceImpl(Native Method)
05-16 08:53:34.457: E/AndroidRuntime(3422): at java.lang.Class.newInstance(Class.java:1319)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.app.ActivityThread.access$600(ActivityThread.java:141)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.os.Handler.dispatchMessage(Handler.java:99)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.os.Looper.loop(Looper.java:137)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.app.ActivityThread.main(ActivityThread.java:5041)
05-16 08:53:34.457: E/AndroidRuntime(3422): at java.lang.reflect.Method.invokeNative(Native Method)
05-16 08:53:34.457: E/AndroidRuntime(3422): at java.lang.reflect.Method.invoke(Method.java:511)
05-16 08:53:34.457: E/AndroidRuntime(3422): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-16 08:53:34.457: E/AndroidRuntime(3422): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-16 08:53:34.457: E/AndroidRuntime(3422): at dalvik.system.NativeStart.main(Native Method)
05-16 08:53:34.457: E/AndroidRuntime(3422): Caused by: java.lang.NoClassDefFoundError: com.google.android.gms.maps.model.LatLng
05-16 08:53:34.457: E/AndroidRuntime(3422): at com.apptree.de_luxe.InfoActivity.<clinit>(InfoActivity.java:35)
05-16 08:53:34.457: E/AndroidRuntime(3422): ... 15 more
In Eclipse go to:
"Project" -> "Properties" -> "Java Build Properties"
On the "Order and Export" tab I checked "Android Private Libraries" on my project. I also did this for the library project it references. This fixed my class not found errors following upgrading to SDK 22.
You should refer the google play services library project in your map project.
Import your library project to your worksace. import the same to eclipse.
Right click on your project. goto properties. Choose android. click android. browse and add the library project.

Google Maps api v2 class not found

I am using google maps api v2 and everything was working fine . today morning i updated the sdk and now maps are not working. Tried a lot of things like importing the lib project again and all but nothing seems to work . Plz help.
This is the logcat output
05-16 08:53:34.327: E/dalvikvm(3422): Could not find class 'com.google.android.gms.maps.model.LatLng', referenced from method com.apptree.de_luxe.InfoActivity.<clinit>
05-16 08:53:34.327: W/dalvikvm(3422): VFY: unable to resolve new-instance 170 (Lcom/google/android/gms/maps/model/LatLng;) in Lcom/apptree/de_luxe/InfoActivity;
05-16 08:53:34.327: D/dalvikvm(3422): VFY: replacing opcode 0x22 at 0x0000
05-16 08:53:34.327: E/dalvikvm(3422): Could not find class 'com.google.android.gms.maps.model.MarkerOptions', referenced from method com.apptree.de_luxe.InfoActivity.setUpMap
05-16 08:53:34.327: W/dalvikvm(3422): VFY: unable to resolve new-instance 172 (Lcom/google/android/gms/maps/model/MarkerOptions;) in Lcom/apptree/de_luxe/InfoActivity;
05-16 08:53:34.327: D/dalvikvm(3422): VFY: replacing opcode 0x22 at 0x0002
05-16 08:53:34.347: E/dalvikvm(3422): Could not find class 'com.google.android.gms.maps.MapFragment', referenced from method com.apptree.de_luxe.InfoActivity.setUpMapIfNeeded
05-16 08:53:34.347: W/dalvikvm(3422): VFY: unable to resolve check-cast 169 (Lcom/google/android/gms/maps/MapFragment;) in Lcom/apptree/de_luxe/InfoActivity;
05-16 08:53:34.357: D/dalvikvm(3422): VFY: replacing opcode 0x1f at 0x000f
05-16 08:53:34.367: D/dalvikvm(3422): DexOpt: unable to opt direct call 0x029b at 0x0c in Lcom/apptree/de_luxe/InfoActivity;.<clinit>
05-16 08:53:34.367: D/dalvikvm(3422): DexOpt: unable to opt direct call 0x029c at 0x04 in Lcom/apptree/de_luxe/InfoActivity;.setUpMap
05-16 08:53:34.387: W/dalvikvm(3422): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/apptree/de_luxe/InfoActivity;
05-16 08:53:34.387: W/dalvikvm(3422): Class init failed in newInstance call (Lcom/apptree/de_luxe/InfoActivity;)
05-16 08:53:34.387: D/AndroidRuntime(3422): Shutting down VM
05-16 08:53:34.398: W/dalvikvm(3422): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
05-16 08:53:34.457: E/AndroidRuntime(3422): FATAL EXCEPTION: main
05-16 08:53:34.457: E/AndroidRuntime(3422): java.lang.ExceptionInInitializerError
05-16 08:53:34.457: E/AndroidRuntime(3422): at java.lang.Class.newInstanceImpl(Native Method)
05-16 08:53:34.457: E/AndroidRuntime(3422): at java.lang.Class.newInstance(Class.java:1319)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.app.ActivityThread.access$600(ActivityThread.java:141)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.os.Handler.dispatchMessage(Handler.java:99)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.os.Looper.loop(Looper.java:137)
05-16 08:53:34.457: E/AndroidRuntime(3422): at android.app.ActivityThread.main(ActivityThread.java:5041)
05-16 08:53:34.457: E/AndroidRuntime(3422): at java.lang.reflect.Method.invokeNative(Native Method)
05-16 08:53:34.457: E/AndroidRuntime(3422): at java.lang.reflect.Method.invoke(Method.java:511)
05-16 08:53:34.457: E/AndroidRuntime(3422): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-16 08:53:34.457: E/AndroidRuntime(3422): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-16 08:53:34.457: E/AndroidRuntime(3422): at dalvik.system.NativeStart.main(Native Method)
05-16 08:53:34.457: E/AndroidRuntime(3422): Caused by: java.lang.NoClassDefFoundError: com.google.android.gms.maps.model.LatLng
05-16 08:53:34.457: E/AndroidRuntime(3422): at com.apptree.de_luxe.InfoActivity.<clinit>(InfoActivity.java:35)
05-16 08:53:34.457: E/AndroidRuntime(3422): ... 15 more
In Eclipse go to:
"Project" -> "Properties" -> "Java Build Properties"
On the "Order and Export" tab I checked "Android Private Libraries" on my project. I also did this for the library project it references. This fixed my class not found errors following upgrading to SDK 22.
You should refer the google play services library project in your map project.
Import your library project to your worksace. import the same to eclipse.
Right click on your project. goto properties. Choose android. click android. browse and add the library project.

Zxing CaptureActivity - crashing when launching activity

I am trying to integrate the QR reading capabilities of Zxing into a stand-alone app, and have been using this very helpful guide http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/ along with these pointers Integrating the ZXing library directly into my Android application but after having built the library, and followed all steps to launch this activity on a button press, it still does not work. The app launches, but upon pressing the button, it crashes.
activity_main.html
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="#dimen/activity_vertical_margin"
android:paddingLeft="#dimen/activity_horizontal_margin"
android:paddingRight="#dimen/activity_horizontal_margin"
android:paddingTop="#dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="buttPress"
android:text="#string/button_send"
android:textColor="#FFFFFF"
/>
</RelativeLayout>
MainActivity.java
package se.mydomain.myapp;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
public class MainActivity extends Activity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
#Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void buttPress(View view) {
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
startActivityForResult(intent, 0);
}
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
if (requestCode == 0) {
if (resultCode == RESULT_OK) {
String contents = intent.getStringExtra("SCAN_RESULT");
String format = intent.getStringExtra("SCAN_RESULT_FORMAT");
// Handle successful scan
} else if (resultCode == RESULT_CANCELED) {
// Handle cancel
}
}
}
}
Manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="se.mydomain.myapp"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.CAMERA"/>
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="se.mydomain.myapp.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.google.zxing.client.android.CaptureActivity"
android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden"
android:theme="#android:style/Theme.NoTitleBar.Fullscreen"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
<intent-filter>
<action android:name="com.google.zxing.client.android.SCAN"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
</application>
</manifest>
This is the output in logcat upon launching and then pressing the button. Am I missing something obvious here? This happens both when emulating and when running on a phone, btw.
04-16 13:31:58.313: D/gralloc_goldfish(1359): Emulator without GPU emulation detected.
04-16 13:32:13.034: I/Choreographer(1359): Skipped 82 frames! The application may be doing too much work on its main thread.
04-16 13:32:13.093: W/dalvikvm(1359): VFY: unable to resolve static field 872 (ISSUE_NUMBER) in Lcom/google/zxing/ResultMetadataType;
04-16 13:32:13.103: D/dalvikvm(1359): VFY: replacing opcode 0x62 at 0x0017
04-16 13:32:13.103: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.133: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/ResultPoint;)
04-16 13:32:13.133: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/ResultPoint;)
04-16 13:32:13.133: I/dalvikvm(1359): Could not find method com.google.zxing.ResultPoint.getX, referenced from method com.google.zxing.client.android.CaptureActivity.drawLine
04-16 13:32:13.143: W/dalvikvm(1359): VFY: unable to resolve virtual method 3648: Lcom/google/zxing/ResultPoint;.getX ()F
04-16 13:32:13.143: D/dalvikvm(1359): VFY: replacing opcode 0x6e at 0x0000
04-16 13:32:13.143: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.175: I/dalvikvm(1359): Could not find method com.google.zxing.Result.getResultPoints, referenced from method com.google.zxing.client.android.CaptureActivity.drawResultPoints
04-16 13:32:13.175: W/dalvikvm(1359): VFY: unable to resolve virtual method 3644: Lcom/google/zxing/Result;.getResultPoints ()[Lcom/google/zxing/ResultPoint;
04-16 13:32:13.183: D/dalvikvm(1359): VFY: replacing opcode 0x6e at 0x0003
04-16 13:32:13.183: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.224: I/dalvikvm(1359): Could not find method com.google.zxing.Result.toString, referenced from method com.google.zxing.client.android.CaptureActivity.handleDecodeExternally
04-16 13:32:13.224: W/dalvikvm(1359): VFY: unable to resolve virtual method 3647: Lcom/google/zxing/Result;.toString ()Ljava/lang/String;
04-16 13:32:13.224: D/dalvikvm(1359): VFY: replacing opcode 0x74 at 0x007d
04-16 13:32:13.253: I/dalvikvm(1359): Could not find method com.google.zxing.Result.getText, referenced from method com.google.zxing.client.android.CaptureActivity.handleDecodeExternally
04-16 13:32:13.253: W/dalvikvm(1359): VFY: unable to resolve virtual method 3645: Lcom/google/zxing/Result;.getText ()Ljava/lang/String;
04-16 13:32:13.264: D/dalvikvm(1359): VFY: replacing opcode 0x74 at 0x01c0
04-16 13:32:13.264: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.284: I/dalvikvm(1359): Could not find method com.google.zxing.Result.getBarcodeFormat, referenced from method com.google.zxing.client.android.CaptureActivity.handleDecodeInternally
04-16 13:32:13.284: W/dalvikvm(1359): VFY: unable to resolve virtual method 3641: Lcom/google/zxing/Result;.getBarcodeFormat ()Lcom/google/zxing/BarcodeFormat;
04-16 13:32:13.284: D/dalvikvm(1359): VFY: replacing opcode 0x74 at 0x004c
04-16 13:32:13.324: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.354: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.364: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.384: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.384: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.394: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.394: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.414: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.454: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.454: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.484: I/dalvikvm(1359): Could not find method com.google.zxing.Result.getText, referenced from method com.google.zxing.client.android.CaptureActivity.handleDecode
04-16 13:32:13.494: W/dalvikvm(1359): VFY: unable to resolve virtual method 3645: Lcom/google/zxing/Result;.getText ()Ljava/lang/String;
04-16 13:32:13.494: D/dalvikvm(1359): VFY: replacing opcode 0x6e at 0x0068
04-16 13:32:13.504: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.504: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.524: W/dalvikvm(1359): VFY: unable to find class referenced in signature (Lcom/google/zxing/Result;)
04-16 13:32:13.574: W/dalvikvm(1359): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/google/zxing/client/android/CaptureActivity;
04-16 13:32:13.584: W/dalvikvm(1359): Class init failed in newInstance call (Lcom/google/zxing/client/android/CaptureActivity;)
04-16 13:32:13.584: D/AndroidRuntime(1359): Shutting down VM
04-16 13:32:13.594: W/dalvikvm(1359): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
04-16 13:32:13.664: E/AndroidRuntime(1359): FATAL EXCEPTION: main
04-16 13:32:13.664: E/AndroidRuntime(1359): java.lang.ExceptionInInitializerError
04-16 13:32:13.664: E/AndroidRuntime(1359): at java.lang.Class.newInstanceImpl(Native Method)
04-16 13:32:13.664: E/AndroidRuntime(1359): at java.lang.Class.newInstance(Class.java:1319)
04-16 13:32:13.664: E/AndroidRuntime(1359): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
04-16 13:32:13.664: E/AndroidRuntime(1359): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
04-16 13:32:13.664: E/AndroidRuntime(1359): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
04-16 13:32:13.664: E/AndroidRuntime(1359): at android.app.ActivityThread.access$600(ActivityThread.java:141)
04-16 13:32:13.664: E/AndroidRuntime(1359): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
04-16 13:32:13.664: E/AndroidRuntime(1359): at android.os.Handler.dispatchMessage(Handler.java:99)
04-16 13:32:13.664: E/AndroidRuntime(1359): at android.os.Looper.loop(Looper.java:137)
04-16 13:32:13.664: E/AndroidRuntime(1359): at android.app.ActivityThread.main(ActivityThread.java:5041)
04-16 13:32:13.664: E/AndroidRuntime(1359): at java.lang.reflect.Method.invokeNative(Native Method)
04-16 13:32:13.664: E/AndroidRuntime(1359): at java.lang.reflect.Method.invoke(Method.java:511)
04-16 13:32:13.664: E/AndroidRuntime(1359): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-16 13:32:13.664: E/AndroidRuntime(1359): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
04-16 13:32:13.664: E/AndroidRuntime(1359): at dalvik.system.NativeStart.main(Native Method)
04-16 13:32:13.664: E/AndroidRuntime(1359): Caused by: java.lang.NoClassDefFoundError: com.google.zxing.ResultMetadataType
04-16 13:32:13.664: E/AndroidRuntime(1359): at com.google.zxing.client.android.CaptureActivity.<clinit>(CaptureActivity.java:101)
04-16 13:32:13.664: E/AndroidRuntime(1359): ... 15 more
04-16 13:32:19.034: I/Process(1359): Sending signal. PID: 1359 SIG: 9

SDK - R18 still has some bug

Some jar libraries in the libs/ folder are not picked up in some cases.
Just like arcgis for Android sample project "HelloWord", compiled without problems, but can't run properly.
04-16 14:56:33.104: D/dalvikvm(9369): Late-enabling CheckJNI
04-16 14:56:33.134: I/dalvikvm(9369): Turning on JNI app bug workarounds for target SDK version 7...
04-16 14:56:33.234: D/ArcGIS.LifeCycle(9369): map.onChildViewAdded
04-16 14:56:33.244: D/ArcGIS.LifeCycle(9369): map.initLayer
04-16 14:56:33.244: D/ArcGIS.LifeCycle(9369): >>>layer init startcom.esri.android.map.ags.ArcGISTiledMapServiceLayer
04-16 14:56:33.244: D/ArcGIS.LifeCycle(9369): layer init...
04-16 14:56:33.244: W/dalvikvm(9369): VFY: unable to find class referenced in signature (Lorg/codehaus/jackson/JsonNode;)
04-16 14:56:33.244: I/dalvikvm(9369): Could not find method org.codehaus.jackson.JsonNode.get, referenced from method com.esri.android.a.e.a
04-16 14:56:33.244: W/dalvikvm(9369): VFY: unable to resolve virtual method 4781: Lorg/codehaus/jackson/JsonNode;.get (Ljava/lang/String;)Lorg/codehaus/jackson/JsonNode;
04-16 14:56:33.244: D/dalvikvm(9369): VFY: replacing opcode 0x6e at 0x0005
04-16 14:56:33.244: I/dalvikvm(9369): Could not find method
org.codehaus.jackson.JsonNode.getTextValue, referenced from method com.esri.android.a.e.a
04-16 14:56:33.244: W/dalvikvm(9369): VFY: unable to resolve virtual method 4784: Lorg/codehaus/jackson/JsonNode;.getTextValue ()Ljava/lang/String;
04-16 14:56:33.244: D/dalvikvm(9369): VFY: replacing opcode 0x6e at 0x000b
04-16 14:56:33.244: E/HtcAppUsageStatsListener(9369): afterPerformResume
04-16 14:56:33.244: E/HtcAppUsageStatsListener(9369): java.lang.NullPointerException
04-16 14:56:33.244: E/HtcAppUsageStatsListener(9369): at android.app.HtcAppUsageStatsListener.afterPerformResume(HtcAppUsageStatsListener.java:77)
04-16 14:56:33.244: D/ArcGIS.TileCache(9369): max number of cached tiles:1000
04-16 14:56:33.244: D/ArcGIS.LifeCycle(9369): sdcache inited.
04-16 14:56:33.244: D/ArcGIS.TileCache(9369): SDCardCache
04-16 14:56:33.244: E/dalvikvm(9369): Could not find class
'org.codehaus.jackson.JsonFactory', referenced from method com.esri.core.internal.b.a.e.<clinit>
04-16 14:56:33.244: W/dalvikvm(9369): VFY: unable to resolve new-instance 717
(Lorg/codehaus/jackson/JsonFactory;) in Lcom/esri/core/internal/b/a/e;
04-16 14:56:33.244: D/dalvikvm(9369): VFY: replacing opcode 0x22 at 0x0000
04-16 14:56:33.244: W/dalvikvm(9369): VFY: unable to find class referenced in signature (Lorg/codehaus/jackson/JsonFactory;)
04-16 14:56:33.254: I/dalvikvm(9369): Could not find method org.codehaus.jackson.JsonFactory.createJsonParser, referenced from method com.esri.core.internal.b.a.e.a
04-16 14:56:33.254: W/dalvikvm(9369): VFY: unable to resolve virtual method 4760: Lorg/codehaus/jackson/JsonFactory;.createJsonParser
(Ljava/io/InputStream;)Lorg/codehaus/jackson/JsonParser;
04-16 14:56:33.254: D/dalvikvm(9369): VFY: replacing opcode 0x6e at 0x016c
04-16 14:56:33.254: I/dalvikvm(9369): Could not find method org.codehaus.jackson.JsonFactory.createJsonParser, referenced from method com.esri.core.internal.b.a.e.a
04-16 14:56:33.254: W/dalvikvm(9369): VFY: unable to resolve virtual method 4761: Lorg/codehaus/jackson/JsonFactory;.createJsonParser (Ljava/lang/String;)Lorg/codehaus/jackson/JsonParser;
04-16 14:56:33.254: D/dalvikvm(9369): VFY: replacing opcode 0x6e at 0x0022
04-16 14:56:33.254: I/dalvikvm(9369): Could not find method org.codehaus.jackson.JsonFactory.createJsonParser, referenced from method com.esri.core.internal.b.a.e.a
04-16 14:56:33.254: W/dalvikvm(9369): VFY: unable to resolve virtual method 4761:
Lorg/codehaus/jackson/JsonFactory;.createJsonParser (Ljava/lang/String;)Lorg/codehaus/jackson/JsonParser;
04-16 14:56:33.254: D/dalvikvm(9369): VFY: replacing opcode 0x6e at 0x001f
04-16 14:56:33.254: D/dalvikvm(9369): DexOpt: unable to opt direct call 0x1296 at 0x02 in Lcom/esri/core/internal/b/a/e;.<clinit>
04-16 14:56:33.264: W/dalvikvm(9369): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/esri/core/internal/b/a/e;
04-16 14:56:33.274: D/ArcGIS(9369): Failed to initialize the MapView.
04-16 14:56:33.274: D/ArcGIS(9369): java.lang.ExceptionInInitializerError
04-16 14:56:33.274: D/ArcGIS(9369): at com.esri.core.internal.a.a.k.a(Unknown Source)
04-16 14:56:33.274: D/ArcGIS(9369): at com.esri.android.map.ags.ArcGISTiledMapServiceLayer.initModel(Unknown Source)
04-16 14:56:33.274: D/ArcGIS(9369): at com.esri.android.map.ags.ArcGISTiledMapServiceLayer.initModel(Unknown Source)
04-16 14:56:33.274: D/ArcGIS(9369): at com.esri.android.map.LayerView.initLayer(Unknown Source)
04-16 14:56:33.274: D/ArcGIS(9369): at com.esri.android.map.MapView$1.a(Unknown Source)
04-16 14:56:33.274: D/ArcGIS(9369): at com.esri.android.map.MapView$1.call(Unknown Source)
04-16 14:56:33.274: D/ArcGIS(9369): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
04-16 14:56:33.274: D/ArcGIS(9369): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
04-16 14:56:33.274: D/ArcGIS(9369): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
04-16 14:56:33.274: D/ArcGIS(9369): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
04-16 14:56:33.274: D/ArcGIS(9369): at java.lang.Thread.run(Thread.java:864)
04-16 14:56:33.274: D/ArcGIS(9369): Caused by: java.lang.NoClassDefFoundError: org.codehaus.jackson.JsonFactory
04-16 14:56:33.274: D/ArcGIS(9369): at com.esri.core.internal.b.a.e.<clinit>(Unknown Source)
04-16 14:56:33.274: D/ArcGIS(9369): ... 11 more
04-16 14:56:33.274: D/ArcGIS.LifeCycle(9369): sdcard inited.
04-16 14:56:33.294: D/ArcGIS.LifeCycle(9369): map.onSizechanged
04-16 14:56:33.294: D/ArcGIS.LifeCycle(9369): !!! onSizeChangedSignal
04-16 14:56:33.294: D/ArcGIS.LifeCycle(9369): map.onLayout
04-16 14:56:33.304: D/ArcGIS.LifeCycle(9369): map.onLayout
04-16 14:56:33.314: D/memalloc(9369): /dev/pmem: Mapped buffer base:0x51fbc000 size:27017216 offset:24928256 fd:56
we might have encountered the same error - In my case the solution was to separate the Ant targets to two calls (i.e. "ant myParameters myTarget1 myTarget2", and "ant myParameters debug delivery"). Hope this works for you, anyhow - Google need to add better support for their undocumented/faulty changes (and stackoverflow isn't the best place for questions that are not originated in stupidity, as the lifetime of a complex question isn't too long here).
If that doesn't work for you please elaborate your question.

Categories

Resources