snowman7040
Lost but trying
Profile
Posts: 83
Reg: Jul 03, 2013
lawton
5,430
11/10/15 03:23 PM (8 years ago)

ANDROID STUDIO GETTING AN ERROR

GETTING ONE ERROR Error:Execution failed for task ':app:compileDebugJava'. > Compilation failed; see the compiler error output for details. NOT SURE WHATS GOING ON FIRST TIME USING STUDIO
 
snowman7040
Lost but trying
Profile
Posts: 83
Reg: Jul 03, 2013
lawton
5,430
like
11/10/15 03:45 PM (8 years ago)
/Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_activity_host.java:71: error: package com.google.android.gms.common does not exist import com.google.android.gms.common.ConnectionResult; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_activity_host.java:72: error: package com.google.android.gms.common does not exist import com.google.android.gms.common.GooglePlayServicesUtil; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_activity_host.java:73: error: package com.google.android.gms.gcm does not exist import com.google.android.gms.gcm.GoogleCloudMessaging; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_activity_host.java:106: error: cannot find symbol public GoogleCloudMessaging gcm; ^ symbol: class GoogleCloudMessaging location: class BT_activity_host /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmIntentService.java:41: error: package android.support.v4.app does not exist import android.support.v4.app.NotificationCompat; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmIntentService.java:44: error: package com.google.android.gms.gcm does not exist import com.google.android.gms.gcm.GoogleCloudMessaging; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmIntentService.java:50: error: package NotificationCompat does not exist NotificationCompat.Builder builder; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmReceiver.java:39: error: package android.support.v4.content does not exist import android.support.v4.content.WakefulBroadcastReceiver; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmReceiver.java:42: error: cannot find symbol public class BT_gcmReceiver extends WakefulBroadcastReceiver { ^ symbol: class WakefulBroadcastReceiver /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:57: error: package com.google.android.gms.common does not exist import com.google.android.gms.common.ConnectionResult; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:58: error: package com.google.android.gms.common does not exist import com.google.android.gms.common.GooglePlayServicesUtil; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:59: error: cannot find symbol import com.google.android.gms.maps.CameraUpdate; ^ symbol: class CameraUpdate location: package com.google.android.gms.maps /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:60: error: cannot find symbol import com.google.android.gms.maps.CameraUpdateFactory; ^ symbol: class CameraUpdateFactory location: package com.google.android.gms.maps /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:61: error: cannot find symbol import com.google.android.gms.maps.GoogleMap; ^ symbol: class GoogleMap location: package com.google.android.gms.maps /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:62: error: package com.google.android.gms.maps.GoogleMap does not exist import com.google.android.gms.maps.GoogleMap.OnMarkerClickListener; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:63: error: package com.google.android.gms.maps.GoogleMap does not exist import com.google.android.gms.maps.GoogleMap.SnapshotReadyCallback; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:64: error: cannot find symbol import com.google.android.gms.maps.MapFragment; ^ symbol: class MapFragment location: package com.google.android.gms.maps /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:65: error: package com.google.android.gms.maps.model does not exist import com.google.android.gms.maps.model.BitmapDescriptorFactory; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:66: error: package com.google.android.gms.maps.model does not exist import com.google.android.gms.maps.model.CameraPosition; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:67: error: package com.google.android.gms.maps.model does not exist import com.google.android.gms.maps.model.LatLng; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:68: error: package com.google.android.gms.maps.model does not exist import com.google.android.gms.maps.model.LatLngBounds; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:69: error: package com.google.android.gms.maps.model does not exist import com.google.android.gms.maps.model.Marker; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:70: error: package com.google.android.gms.maps.model does not exist import com.google.android.gms.maps.model.MarkerOptions; ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:89: error: cannot find symbol public MapFragment mapFragment = null; ^ symbol: class MapFragment location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:90: error: cannot find symbol public GoogleMap mapView = null; ^ symbol: class GoogleMap location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:92: error: cannot find symbol public ArrayList<Marker> markers; ^ symbol: class Marker location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:94: error: cannot find symbol public Marker deviceMarker = null; ^ symbol: class Marker location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_activity_host.java:310: error: cannot find symbol gcm = GoogleCloudMessaging.getInstance(thisContext); ^ symbol: variable GoogleCloudMessaging location: class BT_activity_host /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_activity_host.java:802: error: cannot find symbol int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); ^ symbol: variable GooglePlayServicesUtil location: class BT_activity_host /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_activity_host.java:803: error: cannot find symbol if (resultCode != ConnectionResult.SUCCESS) { ^ symbol: variable ConnectionResult location: class BT_activity_host /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_activity_host.java:804: error: cannot find symbol if(GooglePlayServicesUtil.isUserRecoverableError(resultCode)) { ^ symbol: variable GooglePlayServicesUtil location: class BT_activity_host /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_activity_host.java:805: error: cannot find symbol GooglePlayServicesUtil.getErrorDialog(resultCode, this, 9000).show(); ^ symbol: variable GooglePlayServicesUtil location: class BT_activity_host /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_activity_host.java:836: error: cannot find symbol gcm = GoogleCloudMessaging.getInstance(thisContext); ^ symbol: variable GoogleCloudMessaging location: class BT_activity_host.RegisterForPushAsync /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_activity_host.java:889: error: cannot find symbol gcm = GoogleCloudMessaging.getInstance(thisContext); ^ symbol: variable GoogleCloudMessaging location: class BT_activity_host.UnRegisterForPushAsync /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmIntentService.java:61: error: cannot find symbol GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this); ^ symbol: class GoogleCloudMessaging location: class BT_gcmIntentService /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmIntentService.java:61: error: cannot find symbol GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this); ^ symbol: variable GoogleCloudMessaging location: class BT_gcmIntentService /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmIntentService.java:65: error: package GoogleCloudMessaging does not exist if (GoogleCloudMessaging.MESSAGE_TYPE_SEND_ERROR.equals(messageType)){ ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmIntentService.java:70: error: package GoogleCloudMessaging does not exist }else if(GoogleCloudMessaging.MESSAGE_TYPE_DELETED.equals(messageType)){ ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmIntentService.java:75: error: package GoogleCloudMessaging does not exist }else if(GoogleCloudMessaging.MESSAGE_TYPE_MESSAGE.equals(messageType)){ ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmIntentService.java:88: error: cannot find symbol BT_gcmReceiver.completeWakefulIntent(intent); ^ symbol: method completeWakefulIntent(Intent) location: class BT_gcmReceiver /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmIntentService.java:100: error: package NotificationCompat does not exist NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this) ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmIntentService.java:103: error: package NotificationCompat does not exist .setStyle(new NotificationCompat.BigTextStyle() ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmIntentService.java:100: error: package NotificationCompat does not exist NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this) ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmReceiver.java:52: error: cannot find symbol startWakefulService(context, (intent.setComponent(comp))); ^ symbol: method startWakefulService(Context,Intent) location: class BT_gcmReceiver /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmReceiver.java:53: error: cannot find symbol setResultCode(Activity.RESULT_OK); ^ symbol: method setResultCode(int) location: class BT_gcmReceiver /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_gcmReceiver.java:44: error: method does not override or implement a method from a supertype @Override ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:147: error: cannot find symbol int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(tramp4life_appDelegate.getApplication()); ^ symbol: variable GooglePlayServicesUtil location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:148: error: cannot find symbol if(status == ConnectionResult.SUCCESS){ ^ symbol: variable ConnectionResult location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:167: error: cannot find symbol markers = new ArrayList<Marker>(); ^ symbol: class Marker location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:181: error: cannot find symbol mapView = ((MapFragment) getFragmentManager().findFragmentById(R.id.mapView)).getMap(); ^ symbol: class MapFragment location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:231: error: cannot find symbol MapFragment destroyMap = (MapFragment)getFragmentManager().findFragmentById(R.id.mapView); ^ symbol: class MapFragment location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:231: error: cannot find symbol MapFragment destroyMap = (MapFragment)getFragmentManager().findFragmentById(R.id.mapView); ^ symbol: class MapFragment location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:235: error: cannot find symbol CameraPosition mMyCam = mapView.getCameraPosition(); ^ symbol: class CameraPosition location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:281: error: cannot find symbol mapView.setMapType(GoogleMap.MAP_TYPE_NORMAL); ^ symbol: variable GoogleMap location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:286: error: cannot find symbol mapView.setMapType(GoogleMap.MAP_TYPE_TERRAIN); ^ symbol: variable GoogleMap location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:291: error: cannot find symbol mapView.setMapType(GoogleMap.MAP_TYPE_HYBRID); ^ symbol: variable GoogleMap location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:409: error: cannot find symbol MarkerOptions tmpMarkerOptions = new MarkerOptions() ^ symbol: class MarkerOptions location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:414: error: cannot find symbol .icon(BitmapDescriptorFactory.fromResource(pinGraphicResId)); ^ symbol: variable BitmapDescriptorFactory location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:410: error: cannot find symbol .position(new LatLng(Double.parseDouble(tmpLatitude), Double.parseDouble(tmpLongitude))) ^ symbol: class LatLng location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:409: error: cannot find symbol MarkerOptions tmpMarkerOptions = new MarkerOptions() ^ symbol: class MarkerOptions location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:417: error: cannot find symbol Marker tmpMarker = mapView.addMarker(tmpMarkerOptions); ^ symbol: class Marker location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:432: error: cannot find symbol MarkerOptions tmpMarkerOptions = new MarkerOptions() ^ symbol: class MarkerOptions location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:437: error: cannot find symbol .icon(BitmapDescriptorFactory.fromResource(R.drawable.bt_screen_map_youarehere)); ^ symbol: variable BitmapDescriptorFactory location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:433: error: cannot find symbol .position(new LatLng(Double.parseDouble(tmpLatitude), Double.parseDouble(tmpLongitude))) ^ symbol: class LatLng location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:432: error: cannot find symbol MarkerOptions tmpMarkerOptions = new MarkerOptions() ^ symbol: class MarkerOptions location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:460: error: cannot find symbol mapView.setOnMarkerClickListener(new OnMarkerClickListener(){ ^ symbol: class OnMarkerClickListener location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:492: error: package LatLngBounds does not exist LatLngBounds.Builder builder = new LatLngBounds.Builder(); ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:492: error: package LatLngBounds does not exist LatLngBounds.Builder builder = new LatLngBounds.Builder(); ^ /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:493: error: cannot find symbol for (Marker marker : markers){ ^ symbol: class Marker location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:496: error: cannot find symbol LatLngBounds bounds = builder.build(); ^ symbol: class LatLngBounds location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:506: error: cannot find symbol LatLng latLng = new LatLng(Double.parseDouble(lastLatitude), Double.parseDouble(lastLongitude)); ^ symbol: class LatLng location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:506: error: cannot find symbol LatLng latLng = new LatLng(Double.parseDouble(lastLatitude), Double.parseDouble(lastLongitude)); ^ symbol: class LatLng location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:507: error: cannot find symbol CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, Float.parseFloat(lastZoom)); ^ symbol: class CameraUpdate location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:507: error: cannot find symbol CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, Float.parseFloat(lastZoom)); ^ symbol: variable CameraUpdateFactory location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:514: error: cannot find symbol CameraUpdate cu = CameraUpdateFactory.newLatLngBounds(bounds, tramp4life_appDelegate.rootApp.getRootDevice().getDeviceWidth(), tramp4life_appDelegate.rootApp.getRootDevice().getDeviceHeight(), padding); ^ symbol: class CameraUpdate location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:514: error: cannot find symbol CameraUpdate cu = CameraUpdateFactory.newLatLngBounds(bounds, tramp4life_appDelegate.rootApp.getRootDevice().getDeviceWidth(), tramp4life_appDelegate.rootApp.getRootDevice().getDeviceHeight(), padding); ^ symbol: variable CameraUpdateFactory location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:551: error: cannot find symbol LatLng latLng; ^ symbol: class LatLng location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:558: error: cannot find symbol MarkerOptions tmpMarkerOptions = new MarkerOptions() ^ symbol: class MarkerOptions location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:563: error: cannot find symbol .icon(BitmapDescriptorFactory.fromResource(R.drawable.bt_screen_map_youarehere)); ^ symbol: variable BitmapDescriptorFactory location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:559: error: cannot find symbol .position(new LatLng(Double.parseDouble(tmpLatitude), Double.parseDouble(tmpLongitude))) ^ symbol: class LatLng location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:558: error: cannot find symbol MarkerOptions tmpMarkerOptions = new MarkerOptions() ^ symbol: class MarkerOptions location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:579: error: cannot find symbol latLng = new LatLng(Double.parseDouble(tmpLatitude), Double.parseDouble(tmpLongitude)); ^ symbol: class LatLng location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:580: error: cannot find symbol CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 10); ^ symbol: class CameraUpdate location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:580: error: cannot find symbol CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 10); ^ symbol: variable CameraUpdateFactory location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:876: error: cannot find symbol SnapshotReadyCallback callback = new SnapshotReadyCallback(){ ^ symbol: class SnapshotReadyCallback location: class BT_screen_map /Users/briancraig/Desktop/tramp life download 11:10:15/tramp4life-for-Android-Studio-2/app/src/main/java/com/tramp4life/BT_screen_map.java:876: error: cannot find symbol SnapshotReadyCallback callback = new SnapshotReadyCallback(){ ^ symbol: class SnapshotReadyCallback location: class BT_screen_map 86 errors FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:compileDebugJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 2.699 secs
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/10/15 04:45 PM (8 years ago)
A Lot of that will be cured when you ensure your 'build.gradle' file is set to the right SDKs . I didn't care for Android Studio at first... but now that I'm slowly getting familiar, I think I prefer it over eclipse. If nothing else, the AVD works smoothly. First things first. Make sure you have the latest Android Studio. Make sure all your SDK's are updated. Make sure you have the right SDK installed for the project you are building (my method: download all of them). Check out GoNorthWest's YouTube page. Watch the videos for Android Studio install, and the BT_project import. All done? Cool. So, if you have Android Studio open, look on the left side... way left; like almost the window margin. There you should see (I hope) vertical tabs. One of them should say 'project'. If it is not already selected, select it. This should display your project in sort of a 'windows explorer' style display. You should see two main sections; "AppName" (whatever your project name is) and "Gradle Scripts". In "Gradle Scripts", seek out the 'module' level "build.gradle" file. You'll find that the 'gradle.script' files are in JSON. In the top part, you'll see a section called 'android'. Make sure the 'compileSDKVersion' is the latest version installed on your system. In mine, it's '23'. In the bottom, under a part called 'dependancies' you 'should' see a line similar to this: compile 'com.google.android.gms:play-services:+' If your line has a Google Play Services 'version number' rather than a '+', make sure it's the correct Google Play Version number for the SDK you have installed. And lastly, under 'defaultConfig' make sure your 'targetSdkVersion' is a version that you have installed. It should be *at least* 14, but you can set it to a higher (newer) version if need be. Hope this helps, let us know how you faire... Cheers! -- Smug
 
snowman7040
Lost but trying
Profile
Posts: 83
Reg: Jul 03, 2013
lawton
5,430
like
11/13/15 12:19 PM (8 years ago)
still getting the same error apply plugin: 'com.android.application' android { compileSdkVersion 14 buildToolsVersion '23.0.2' defaultConfig { applicationId "com.tramp4life" minSdkVersion 14 targetSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { //compile possible .jar files in the libs directory... compile fileTree(dir: 'libs', include: ['*.jar']) //Google Play Services for Google Cloud Messaging and Google Maps... compile 'com.google.android.gms:play-services-base:6.5.87' }
 
snowman7040
Lost but trying
Profile
Posts: 83
Reg: Jul 03, 2013
lawton
5,430
like
11/13/15 12:22 PM (8 years ago)
the error that shows up Error:Execution failed for task ':app:compileDebugJava'. > Compilation failed; see the compiler error output for details.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/13/15 04:56 PM (8 years ago)
Change your compileSdkVersion as suggested. Cheers! -- Smug
 
snowman7040
Lost but trying
Profile
Posts: 83
Reg: Jul 03, 2013
lawton
5,430
like
11/14/15 05:04 PM (8 years ago)
still getting the same error apply plugin: 'com.android.application' android { compileSdkVersion 'Google Inc.:Google APIs:22' buildToolsVersion '23.0.2' defaultConfig { applicationId "com.tramp4life" minSdkVersion 14 targetSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { //compile possible .jar files in the libs directory... compile fileTree(dir: 'libs', include: ['*.jar']) //Google Play Services for Google Cloud Messaging and Google Maps... compile 'com.google.android.gms:play-services:8.3.0' }
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/14/15 06:32 PM (8 years ago)
Look at this line from your last example: compileSdkVersion 'Google Inc.:Google APIs:22' now look at your previous example: compileSdkVersion 14 Does anything stand out, that maybe shouldn't be in there? Cheers! -- Smug
 
snowman7040
Lost but trying
Profile
Posts: 83
Reg: Jul 03, 2013
lawton
5,430
like
11/14/15 07:25 PM (8 years ago)
I changed it to the just 23 and still getting the same error
 
snowman7040
Lost but trying
Profile
Posts: 83
Reg: Jul 03, 2013
lawton
5,430
like
11/14/15 07:46 PM (8 years ago)
I changed it to the just 23 and still getting the same error
 
snowman7040
Lost but trying
Profile
Posts: 83
Reg: Jul 03, 2013
lawton
5,430
like
11/14/15 07:50 PM (8 years ago)
I changed it to the just 23 and still getting the same error
 
snowman7040
Lost but trying
Profile
Posts: 83
Reg: Jul 03, 2013
lawton
5,430
like
11/14/15 07:51 PM (8 years ago)
I changed it to the just 23 and still getting the same error
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/14/15 08:16 PM (8 years ago)
Tell you what. Zip up your project, and put it into your dropbox as public. Send me the link, either via Msg here, or to smugwimp at smugwimp dot com. I'll take a look and see what's up. Cheers! -- Smug PS, when you refresh a screen you've posted on, it will duplicate the post. 'leave' the page and bring up a 'fresh' page instead. :)
 
snowman7040
Lost but trying
Profile
Posts: 83
Reg: Jul 03, 2013
lawton
5,430
like
11/15/15 01:25 PM (8 years ago)
ok I trashed it and rebuilt it and I got it working thanks for the help
 
snowman7040
Lost but trying
Profile
Posts: 83
Reg: Jul 03, 2013
lawton
5,430
like
11/15/15 01:26 PM (8 years ago)
only thing is where do I put my image for the splash screen
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/15/15 04:09 PM (8 years ago)
Usually in 'res/drawable'. Cheers! -- Smug
 
snowman7040
Lost but trying
Profile
Posts: 83
Reg: Jul 03, 2013
lawton
5,430
like
11/15/15 05:49 PM (8 years ago)
almost there I got no error now download the apk put it on my phone everything works but the location maps I put my map key in the manifest but when I click on my map close out the app am I missing something
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/15/15 06:36 PM (8 years ago)
I've worked with 'my' map plugin for Android, and it works fine. But I cannot be sure about the BT_screen_map. You'll probably want to search the forums for previously discussed map issues. try typing this into google: site:buzztouch.com/forum google map android studio api doing so returned this post, which may be of assistance: http://www.buzztouch.com/forum/thread.php?tid=3A4972600F4D11A64B33C93&currentPage=4 Good Luck! Cheers! -- Smug
 

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.