我实际上是使用Android开发人员guises给我们的地方自动完成代码。 https://developers.google.com/places/documentation/autocomplete。我做的唯一不同的是改变我的参数上的符号; = to =。我的应用程序一直在你输入的第三个字母上崩溃。我改变的另一件事是
DeviceMonitor: Adb rejected connection to client '16930': closed
所以为了让这个应用程序运行,我已经启动了活动,而不是通常的应用程序。我在运行中更改了设置 - >编辑配置。该应用程序开始运行,然后当我输入它崩溃时,
最后我调试了我的应用。我可以看到地方自动完成工作正常。它从输入的三个字符中收集5个地址,并将其输入到循环器中。 java并显示这三条消息。
msg.callback=java.lang.NullPointerException;
msg.what=java.lang.NullPointerException;
msg.target=java.lang.NullPointerException;
我的logcat只显示了这个
03-18 18:41:23.681 15138-15138/com.example.anusha.app I/System.out﹕ Debugger has connected
03-18 18:41:34.842 15138-15174/com.example.anusha.app W/ActivityThread﹕ ClassLoader.loadClass: The class loader returned by Thread.getContextClassLoader() may fail for processes that host multiple applications. You should explicitly specify a context class loader. For example: Thread.setContextClassLoader(getClass().getClassLoader());
03-18 18:41:36.244 15138-15138/com.example.anusha.app I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:381>: EGL 1.4 QUALCOMM build: (CL3869936)
OpenGL ES Shader Compiler Version: 17.01.11.SPL
Build Date: 01/17/14 Fri
Local Branch:
Remote Branch:
Local Patches:
Reconstruct Branch:
03-18 18:41:44.181 15138-15138/com.example.anusha.app I/dalvikvm﹕ Could not find method android.support.v7.internal.widget.ActionBarOverlayLayout.stopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.setHideOnContentScrollEnabled
03-18 18:41:44.201 15138-15138/com.example.anusha.app I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
03-18 18:41:44.201 15138-15138/com.example.anusha.app W/dalvikvm﹕ VFY: unable to resolve virtual method 534: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
03-18 18:41:44.201 15138-15138/com.example.anusha.app I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
03-18 18:41:44.201 15138-15138/com.example.anusha.app W/dalvikvm﹕ VFY: unable to resolve virtual method 556: Landroid/content/res/TypedArray;.getType (I)I