Discussion Forums  >  Crashes, Memory Warnings

Replies: 8    Views: 264

pimpekjoza
Android Fan
Profile
Posts: 20
Reg: Jul 12, 2012
zagreb
3,750
09/17/12 12:32 PM (11 years ago)

Problem with the java

When i lunch the app on emulator i get next errores -- Does any body know how to fix them ... E/AndroidRuntime(312): FATAL EXCEPTION: main E/AndroidRuntime(312): java.lang.Error: Unresolved compilation problems: E/AndroidRuntime(312): The import com.google cannot be resolved E/AndroidRuntime(312): GeoPoint cannot be resolved to a type E/AndroidRuntime(312): at com.colentum.BT_item.<init>(BT_item.java:3 E/AndroidRuntime(312): at com.colentum.BT_application.<init>(BT_application.java:108) E/AndroidRuntime(312): at com.colentum.colentum_appDelegate.onCreate(colentum_appDelegate.java:122) : E/AndroidRuntime(312): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969) 09-17 19:14:46.782: E/AndroidRuntime(312): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4244) 09-17 19:14:46.782: E/AndroidRuntime(312): at android.app.ActivityThread.access$3000(ActivityThread.java:125) 09-17 19:14:46.782: E/AndroidRuntime(312): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071) 09-17 19:14:46.782: E/AndroidRuntime(312): at android.os.Handler.dispatchMessage(Handler.java:99) 09-17 19:14:46.782: E/AndroidRuntime(312): at android.os.Looper.loop(Looper.java:123) 09-17 19:14:46.782: E/AndroidRuntime(312): at android.app.ActivityThread.main(ActivityThread.java:4627) 09-17 19:14:46.782: E/AndroidRuntime(312): at java.lang.reflect.Method.invokeNative(Native Method) 09-17 19:14:46.782: E/AndroidRuntime(312): at java.lang.reflect.Method.invoke(Method.java:521) 09-17 19:14:46.782: E/AndroidRuntime(312): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 09-17 19:14:46.782: E/AndroidRuntime(312): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) E/AndroidRuntime(312): at dalvik.system.NativeStart.main(Native Method)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/17/12 12:43 PM (11 years ago)
Hi, It doesn't appear that you have the correct API selected for your project. Right-click the project in Eclipse...select Properties, then Android, then select Google API 8. That should take care of your problems. Mark
 
pimpekjoza
Android Fan
Profile
Posts: 20
Reg: Jul 12, 2012
zagreb
3,750
like
09/17/12 12:55 PM (11 years ago)
Tnx Mark . When i run the app in the emulator it crash .. and again the same mistake show s ..
 
pimpekjoza
Android Fan
Profile
Posts: 20
Reg: Jul 12, 2012
zagreb
3,750
like
09/17/12 01:00 PM (11 years ago)
Can i send you a mail ? my be Now it show this [2012-09-17 21:56:05 - Unexpected error while launching logcat. Try reselecting the device.] device not found com.android.ddmlib.AdbCommandRejectedException: device not found at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:752) at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373) at com.android.ddmlib.Device.executeShellCommand(Device.java:462) at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:109) at java.lang.Thread.run(Unknown Source) Do you know what is the problem
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/17/12 01:00 PM (11 years ago)
Yep, feel free to send me email. You have my address!
 
pimpekjoza
Android Fan
Profile
Posts: 20
Reg: Jul 12, 2012
zagreb
3,750
like
09/17/12 01:02 PM (11 years ago)
yes
 
pimpekjoza
Android Fan
Profile
Posts: 20
Reg: Jul 12, 2012
zagreb
3,750
like
09/17/12 01:04 PM (11 years ago)
yes
 
pimpekjoza
Android Fan
Profile
Posts: 20
Reg: Jul 12, 2012
zagreb
3,750
like
09/17/12 01:07 PM (11 years ago)
I send you a mail ::: can you help your mail is [email protected]
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/17/12 01:24 PM (11 years ago)
The issue was that a Google Maps API key had not been configured in the strings.xml file. Here's a tutorial that tells how to get it: https://www.buzztouch.com/files/howtos/Obtaining_a_Google_Maps_API_Key_v1.0.pdf And here's a video that shows how to install the Eclipse Keytool plugin that makes getting the MD5 fingerprint so much easier! http://www.youtube.com/watch?v=IaXE2FUENFI and the forum post that goes with it: https://www.buzztouch.com/forum/thread.php?tid=F7C6774F77ABA0B0125C141 Remember to use the release.keystore for this. You may have to create one if you haven't already. You can use the Keytool to do that as well. Mark
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.