Gradle build problem with Android client

Hey Everyone,

I’ve been getting reports of gradle build problems with the Android project. The file in github is the most up to date and should be used now:

https://github.com/nickfox/GpsTracker/blob/master/phoneClients/android/GpsTracker/build.gradle

Please note there are two gradle.build files, you need the one in the GpsTracker directory.

Please let me know if you encounter any other problems.

18 thoughts on “Gradle build problem with Android client

  1. Tom Devlin

    It appears LocationClient is no longer published by Google. I’m using Android Studio 1.1.0 and I get this error
    C:\android\app\src\main\java\com\websmithing\gpstracker\LocationService.java
    Error:(15, 39) error: cannot find symbol class LocationClient.

    Looked it up and it has been replace by this class GoogleApiClient. I’m lost. I a very much a newby. Suggestions?
    Thank you
    Tom

    Reply
    1. Neeraj Gangwal

      After run gps tracker applocation console shows that probelm–
      [2015-05-01 10:31:15 – GoogleMapGpsCellPhoneTracker] GoogleMapGpsCellPhoneTracker does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml

      can you tell what should i do…

      Reply
  2. Pankaj Solanki

    Hey Nick,
    I am not able to get gradle.build files from the link provided by you. So please provide me the way to get it.

    Reply
  3. Mark

    Hi Nick
    My server server PHP has been upgraded to 5.4 which broke gpstracker with the following 2 errors
    – 05-Apr-2015 13:20:48 Pacific/Auckland] PHP Strict Standards: mysqli::next_result(): There is no next result set. Please, call mysqli_more_results()/mysqli::more_results() to check whether to call this function/method in /home/taruconz/public_html/gpstracker/getgpslocations.php on line 23
    – [05-Apr-2015 13:20:48 Pacific/Auckland] PHP Warning: Cannot modify header information – headers already sent by (output started at……
    Have you written a quick fix for this or can you point me at a solution, pls?
    Kind regards
    Mark
    New Zealand
    Gpstracker has been running beautifully until now – many many thanks!

    Reply
  4. Brando

    I was seeing errors when trying to run in Android Studio.

    Under “app”
    I remove the line “runProguard false” and replaced it with “minifyEnabled false”

    Example:
    buildTypes {
    release {
    debuggable false
    minifyEnabled false
    //runProguard false –> removed line
    proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.txt’

    With that change I can start the emulator, but when ‘tracking’ is turned on the app doesn’t connect to the internet (an incorrect/non exist URL yields no response – I would expect – Cannot reach the website that you have entered. Did you spell it correctly? Does your website use http or https?)

    Would you have a suggestion for troubleshooting?

    Reply
      1. Brando

        Email was tagged as spam.
        Error:
        2015-09-09 17:06:25,791 [1848083] WARN – radle.project.ProjectSetUpTask –
        2015-09-09 17:06:25,791 [1848083] INFO – radle.project.ProjectSetUpTask – Gradle DSL method not found: ‘runProguard()’

        Consult IDE log for more details (Help | Show Log)
        2015-09-09 17:06:25,791 [1848083] INFO – ls.idea.gradle.GradleSyncState – Sync with Gradle for project ‘android’ failed: Gradle DSL method not found: ‘runProguard()’

        Reply
  5. Jason Roberts

    Nick,

    Further to my previous comment:

    from gradle.properties file
    “distributionUrl=https\://services.gradle.org/distributions/gradle-2.8.0-all.zip”

    I changed the 2.8 to 2.1. after that sync did run however I am now getting this new error

    /home/kofi/desktop/phoneClients/android/app/build.gradle
    Error:(17, 0) Gradle DSL method not found: ‘runProguard()’
    Possible causes:The project ‘android’ may be using a version of Gradle that does not contain the method.
    Open Gradle wrapper file
    The build file may be missing a Gradle plugin.
    Apply Gradle plugin

    Any pointers

    Cheers

    JR

    Reply
    1. Nick Fox Post author

      Hey Jason

      Just updated the android clients on github. Updated all the dependencies and gradle. Grab the project again and see how it works now.

      n

      Reply
  6. Jason Roberts

    Nick,

    BTW my buddy donated 30 bucks through PayPal – in appreciation of the amount of incredible work put into building this whole solution

    Cheers

    JR

    Reply
  7. Jason Roberts

    Nick,

    Thanks for updating the gradle file.

    The app now builds smoothly without any gradle errors
    Here is the graddle console output

    Executing tasks: [:app:assembleDebug]

    Configuration on demand is an incubating feature.
    :app:preBuild UP-TO-DATE
    :app:preDebugBuild UP-TO-DATE
    :app:checkDebugManifest
    :app:preReleaseBuild UP-TO-DATE
    :app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
    :app:prepareComAndroidSupportMediarouterV72300Library UP-TO-DATE
    :app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServices840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAds840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAnalytics840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAppindexing840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAppinvite840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAppstate840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAuth840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesBase840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesBasement840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesCast840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesDrive840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesFitness840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesGames840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesGcm840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesIdentity840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesLocation840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesMaps840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesMeasurement840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesNearby840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesPanorama840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesPlus840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesSafetynet840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesVision840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesWallet840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesWearable840Library UP-TO-DATE
    :app:prepareDebugDependencies
    :app:compileDebugAidl UP-TO-DATE
    :app:compileDebugRenderscript UP-TO-DATE
    :app:generateDebugBuildConfig UP-TO-DATE
    :app:generateDebugAssets UP-TO-DATE
    :app:mergeDebugAssets UP-TO-DATE
    :app:generateDebugResValues UP-TO-DATE
    :app:generateDebugResources UP-TO-DATE
    :app:mergeDebugResources UP-TO-DATE
    :app:processDebugManifest UP-TO-DATE
    :app:processDebugResources UP-TO-DATE
    :app:generateDebugSources UP-TO-DATE
    :app:compileDebugJavaWithJavac UP-TO-DATE
    :app:compileDebugNdk UP-TO-DATE
    :app:compileDebugSources UP-TO-DATE
    :app:transformClassesWithDexForDebug UP-TO-DATE
    :app:mergeDebugJniLibFolders UP-TO-DATE
    :app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
    :app:processDebugJavaRes UP-TO-DATE
    :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
    :app:validateDebugSigning
    :app:packageDebug UP-TO-DATE
    :app:zipalignDebug UP-TO-DATE
    :app:assembleDebug UP-TO-DATE

    BUILD SUCCESSFUL

    Total time: 9.552 secs
    Executing tasks: [:app:assembleDebug]

    Configuration on demand is an incubating feature.
    :app:preBuild UP-TO-DATE
    :app:preDebugBuild UP-TO-DATE
    :app:checkDebugManifest
    :app:preReleaseBuild UP-TO-DATE
    :app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
    :app:prepareComAndroidSupportMediarouterV72300Library UP-TO-DATE
    :app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServices840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAds840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAnalytics840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAppindexing840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAppinvite840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAppstate840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAuth840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesBase840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesBasement840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesCast840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesDrive840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesFitness840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesGames840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesGcm840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesIdentity840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesLocation840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesMaps840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesMeasurement840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesNearby840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesPanorama840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesPlus840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesSafetynet840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesVision840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesWallet840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesWearable840Library UP-TO-DATE
    :app:prepareDebugDependencies
    :app:compileDebugAidl UP-TO-DATE
    :app:compileDebugRenderscript UP-TO-DATE
    :app:generateDebugBuildConfig UP-TO-DATE
    :app:generateDebugAssets UP-TO-DATE
    :app:mergeDebugAssets UP-TO-DATE
    :app:generateDebugResValues UP-TO-DATE
    :app:generateDebugResources UP-TO-DATE
    :app:mergeDebugResources UP-TO-DATE
    :app:processDebugManifest UP-TO-DATE
    :app:processDebugResources UP-TO-DATE
    :app:generateDebugSources UP-TO-DATE
    :app:compileDebugJavaWithJavac UP-TO-DATE
    :app:compileDebugNdk UP-TO-DATE
    :app:compileDebugSources UP-TO-DATE
    :app:transformClassesWithDexForDebug UP-TO-DATE
    :app:mergeDebugJniLibFolders UP-TO-DATE
    :app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
    :app:processDebugJavaRes UP-TO-DATE
    :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
    :app:validateDebugSigning
    :app:packageDebug UP-TO-DATE
    :app:zipalignDebug UP-TO-DATE
    :app:assembleDebug UP-TO-DATE

    BUILD SUCCESSFUL

    Total time: 1.416 secs
    Executing tasks: [:app:assembleDebug]

    Configuration on demand is an incubating feature.
    :app:preBuild UP-TO-DATE
    :app:preDebugBuild UP-TO-DATE
    :app:checkDebugManifest
    :app:preReleaseBuild UP-TO-DATE
    :app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
    :app:prepareComAndroidSupportMediarouterV72300Library UP-TO-DATE
    :app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServices840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAds840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAnalytics840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAppindexing840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAppinvite840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAppstate840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAuth840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesBase840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesBasement840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesCast840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesDrive840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesFitness840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesGames840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesGcm840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesIdentity840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesLocation840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesMaps840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesMeasurement840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesNearby840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesPanorama840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesPlus840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesSafetynet840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesVision840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesWallet840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesWearable840Library UP-TO-DATE
    :app:prepareDebugDependencies
    :app:compileDebugAidl UP-TO-DATE
    :app:compileDebugRenderscript UP-TO-DATE
    :app:generateDebugBuildConfig UP-TO-DATE
    :app:generateDebugAssets UP-TO-DATE
    :app:mergeDebugAssets UP-TO-DATE
    :app:generateDebugResValues UP-TO-DATE
    :app:generateDebugResources UP-TO-DATE
    :app:mergeDebugResources UP-TO-DATE
    :app:processDebugManifest UP-TO-DATE
    :app:processDebugResources UP-TO-DATE
    :app:generateDebugSources UP-TO-DATE
    :app:compileDebugJavaWithJavac UP-TO-DATE
    :app:compileDebugNdk UP-TO-DATE
    :app:compileDebugSources UP-TO-DATE
    :app:transformClassesWithDexForDebug UP-TO-DATE
    :app:mergeDebugJniLibFolders UP-TO-DATE
    :app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
    :app:processDebugJavaRes UP-TO-DATE
    :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
    :app:validateDebugSigning
    :app:packageDebug
    :app:zipalignDebug
    :app:assembleDebug

    BUILD SUCCESSFUL

    Total time: 3.423 secs
    Executing tasks: [:app:assembleDebug]

    Configuration on demand is an incubating feature.
    :app:preBuild UP-TO-DATE
    :app:preDebugBuild UP-TO-DATE
    :app:checkDebugManifest
    :app:preReleaseBuild UP-TO-DATE
    :app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
    :app:prepareComAndroidSupportMediarouterV72300Library UP-TO-DATE
    :app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServices840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAds840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAnalytics840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAppindexing840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAppinvite840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAppstate840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesAuth840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesBase840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesBasement840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesCast840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesDrive840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesFitness840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesGames840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesGcm840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesIdentity840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesLocation840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesMaps840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesMeasurement840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesNearby840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesPanorama840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesPlus840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesSafetynet840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesVision840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesWallet840Library UP-TO-DATE
    :app:prepareComGoogleAndroidGmsPlayServicesWearable840Library UP-TO-DATE
    :app:prepareDebugDependencies
    :app:compileDebugAidl UP-TO-DATE
    :app:compileDebugRenderscript UP-TO-DATE
    :app:generateDebugBuildConfig UP-TO-DATE
    :app:generateDebugAssets UP-TO-DATE
    :app:mergeDebugAssets UP-TO-DATE
    :app:generateDebugResValues UP-TO-DATE
    :app:generateDebugResources UP-TO-DATE
    :app:mergeDebugResources UP-TO-DATE
    :app:processDebugManifest UP-TO-DATE
    :app:processDebugResources UP-TO-DATE
    :app:generateDebugSources UP-TO-DATE
    :app:compileDebugJavaWithJavac UP-TO-DATE
    :app:compileDebugNdk UP-TO-DATE
    :app:compileDebugSources UP-TO-DATE
    :app:transformClassesWithDexForDebug UP-TO-DATE
    :app:mergeDebugJniLibFolders UP-TO-DATE
    :app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
    :app:processDebugJavaRes UP-TO-DATE
    :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
    :app:validateDebugSigning
    :app:packageDebug UP-TO-DATE
    :app:zipalignDebug UP-TO-DATE
    :app:assembleDebug UP-TO-DATE

    BUILD SUCCESSFUL

    Total time: 1.26 secs

    However in the Android Monitor Screen, I am receiving error Google Services included:
    I know that Google Services exist as confirmed by the gradle console output:

    02-15 18:12:23.551 10222-10222/? I/art: Late-enabling -Xcheck:jni
    02-15 18:12:23.663 10222-10222/com.websmithing.gpstracker W/System: ClassLoader referenced unknown path: /data/app/com.websmithing.gpstracker-1/lib/arm
    02-15 18:12:23.692 10222-10222/com.websmithing.gpstracker I/GMPM: App measurement is starting up, version: 8487
    02-15 18:12:23.692 10222-10222/com.websmithing.gpstracker I/GMPM: To enable debug logging run: adb shell setprop log.tag.GMPM VERBOSE
    02-15 18:12:23.704 10222-10222/com.websmithing.gpstracker E/GMPM: GoogleService failed to initialize, status: 10, Missing an expected resource: ‘R.string.google_app_id’ for initializing Google services. Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.
    02-15 18:12:23.704 10222-10222/com.websmithing.gpstracker E/GMPM: Scheduler not set. Not logging error/warn.
    02-15 18:12:23.728 10222-10257/com.websmithing.gpstracker E/GMPM: Uploading is not possible. App measurement disabled
    02-15 18:12:23.838 10222-10222/com.websmithing.gpstracker D/GpsTrackerActivity: onResume
    02-15 18:12:23.858 10222-10271/com.websmithing.gpstracker D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
    02-15 18:12:23.915 10222-10271/com.websmithing.gpstracker I/Adreno-EGL: : QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb
    02-15 18:12:23.916 10222-10271/com.websmithing.gpstracker I/OpenGLRenderer: Initialized EGL, version 1.4
    02-15 18:12:42.406 10222-10222/com.websmithing.gpstracker D/LocationService: startTracking
    02-15 18:12:42.433 10222-10222/com.websmithing.gpstracker D/LocationService: onConnected
    02-15 18:12:42.440 10222-10222/com.websmithing.gpstracker D/AndroidRuntime: Shutting down VM
    02-15 18:12:42.440 10222-10222/com.websmithing.gpstracker E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.websmithing.gpstracker, PID: 10222
    java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.
    at android.os.Parcel.readException(Parcel.java:1620)
    at android.os.Parcel.readException(Parcel.java:1573)
    at com.google.android.gms.location.internal.zzi$zza$zza.zza(Unknown Source)
    at com.google.android.gms.location.internal.zzk.zza(Unknown Source)
    at com.google.android.gms.location.internal.zzl.zza(Unknown Source)
    at com.google.android.gms.location.internal.zzd$1.zza(Unknown Source)
    at com.google.android.gms.location.internal.zzd$1.zza(Unknown Source)
    at com.google.android.gms.common.api.internal.zza$zza.zzb(Unknown Source)
    at com.google.android.gms.common.api.internal.zzg.zza(Unknown Source)
    at com.google.android.gms.common.api.internal.zzg.zzb(Unknown Source)
    at com.google.android.gms.common.api.internal.zzl.zzb(Unknown Source)
    at com.google.android.gms.common.api.internal.zzj.zzb(Unknown Source)
    at com.google.android.gms.location.internal.zzd.requestLocationUpdates(Unknown Source)
    at com.websmithing.gpstracker.LocationService.onConnected(LocationService.java:206)
    at com.google.android.gms.common.internal.zzk.zzk(Unknown Source)
    at com.google.android.gms.common.api.internal.zzj.zzi(Unknown Source)
    at com.google.android.gms.common.api.internal.zzh.zzpx(Unknown Source)
    at com.google.android.gms.common.api.internal.zzh.onConnected(Unknown Source)
    at com.google.android.gms.common.api.internal.zzl.onConnected(Unknown Source)
    at com.google.android.gms.common.api.internal.zzc.onConnected(Unknown Source)
    at com.google.android.gms.common.internal.zzj$zzg.zzqL(Unknown Source)
    at com.google.android.gms.common.internal.zzj$zza.zzc(Unknown Source)
    at com.google.android.gms.common.internal.zzj$zza.zzw(Unknown Source)
    at com.google.android.gms.common.internal.zzj$zzc.zzqN(Unknown Source)
    at com.google.android.gms.common.internal.zzj$zzb.handleMessage(Unknown Source)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:5417)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

    What am I doing wrong? I am testing on a Nexus 5, The app starts and runs on the phone and then shuts down

    Any tips appreciated

    Cheers

    JR

    Reply
    1. Nick Fox Post author

      What do you have for the location mode in Android settings under Location? And also, did you touch the AndroidManifest file, in particular the line with ACCESS_FINE_LOCATION?

      n

      Reply
      1. Jason Roberts

        Nick,

        Thanks for your feedback

        Re any modification of the Manifest file – I did not change anything in there,
        AndroidManifest file, in particular the line with ACCESS_FINE_LOCATION? was intact.

        I am not sure what you mean by:
        “What do you have for the location mode in Android settings under Location? “,
        I am not sure I know where to find location mode and am not clear where to find Android settings

        So what I have done is to delete and re install Android Studio, and delete the GpsTracker I cloned from github and doing a fresh coning. I will re run the app tomorrow and send you my results

        Thanks for going out of you way to help

        Cheers

        JR

        Reply
        1. Nick Fox Post author

          Jason, I meant on your android phone. Go into settings. Scroll down to Location and tap on it. The top line says “Mode”. It should be “High accuracy”. You can change it by tapping on it.

          n

          Reply
          1. Jason Roberts

            Hullo Nick,

            Sorry for the late reply. Was away on location

            Re the error message, I did check the cell phone (Nexus 5). The mode was set correctly to start with.

            I did re install both Android Studio and did clone your Github solution. After I get some rest, I will attempt to re run GpsTracker

            Thanks for your help

            Cheers

            JR

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.