Android-Things GpsService Not InitilizingThings possible in IntelliJ that aren't possible in Eclipse?Download a file with Android, and showing the progress in a ProgressDialogAndroid SDK installation doesn't find JDKProper use cases for Android UserManager.isUserAGoat()?Android Things UART not receiving data (RPi3)Powering off Android ThingsAndroid Things: Connect to Serial Debug ConsoleAndroid Things 5.1 - 9 bit UARTAndroid things: failed to resolve PeripheralManagerServiceAndroid Things Raspberry Pi UART Reliability Issue

Cardio work for Muay Thai fighters

What weight should be given to writers groups critiques?

Why isn't Tyrion mentioned in the in-universe book "A Song of Ice and Fire"?

Why did it take so long for Germany to allow electric scooters / e-rollers on the roads?

Why did other houses not demand this?

Need to read my home electrical Meter

Is there a simple example that empirical evidence is misleading?

What would prevent living skin from being a good conductor for magic?

Testing using real data of the customer

Why is 'additive' EQ more difficult to use than 'subtractive'?

Why A=2 and B=1 in the call signs for Spirit and Opportunity?

Count all vowels in string

Why was this character made Grand Maester?

What tokens are in the end of line?

Does an eye for an eye mean monetary compensation?

Who knighted this Game of Thrones character?

Variable declaraton with extra in C

What could a self-sustaining lunar colony slowly lose that would ultimately prove fatal?

Of strange atmospheres - the survivable but unbreathable

What is the recommended procedure to land a taildragger in a crosswind?

How to determine if a hyphen (-) exists inside a column

Is "vegetable base" a common term in English?

...And they were stumped for a long time

Are there any German nonsense poems (Jabberwocky)?



Android-Things GpsService Not Initilizing


Things possible in IntelliJ that aren't possible in Eclipse?Download a file with Android, and showing the progress in a ProgressDialogAndroid SDK installation doesn't find JDKProper use cases for Android UserManager.isUserAGoat()?Android Things UART not receiving data (RPi3)Powering off Android ThingsAndroid Things: Connect to Serial Debug ConsoleAndroid Things 5.1 - 9 bit UARTAndroid things: failed to resolve PeripheralManagerServiceAndroid Things Raspberry Pi UART Reliability Issue






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















Using Android Studio's auto-generated GPS code, during setupGps the NmeaGpsDriver fails to initialize.



Logcat Code:



2019-03-23 18:19:30.590 2054-2054/com.example.gpsmonitor I/InstantRun: starting instant run server: is main process
2019-03-23 18:19:30.602 2054-2054/com.example.gpsmonitor I/ActivityThread: handleStopService: token=android.os.BinderProxy@1bda8fc not found.
2019-03-23 18:19:30.614 2054-2054/com.example.gpsmonitor D/GpsService: GpsService: onCreate
2019-03-23 18:19:30.614 2054-2054/com.example.gpsmonitor D/GpsService: GpsService: setupGps
2019-03-23 18:19:30.669 2054-2054/com.example.gpsmonitor I/zygote: Rejecting re-init on previously-failed class java.lang.Class<com.google.android.things.contrib.driver.gps.NmeaGpsModule$1>: java.lang.IncompatibleClassChangeError: Superclass com.google.android.things.pio.UartDeviceCallback of com.google.android.things.contrib.driver.gps.NmeaGpsModule$1 is an interface (declaration of 'com.google.android.things.contrib.driver.gps.NmeaGpsModule$1' appears in /data/app/com.example.gpsmonitor-TvGQRLdwcqrtDMbhjtBn1Q==/split_lib_dependencies_apk.apk)
2019-03-23 18:19:30.670 2054-2054/com.example.gpsmonitor I/zygote: at void com.google.android.things.contrib.driver.gps.NmeaGpsDriver.<init>(android.content.Context, java.lang.String, int, float, android.os.Handler) (NmeaGpsDriver.java:67)


It is almost entireley the auto-generated code from Android Studio for Things with Peripherals and set the UART6 for the Pico-Pi-i.MX7d. So I'm wondering what I'm missing.










share|improve this question






























    1















    Using Android Studio's auto-generated GPS code, during setupGps the NmeaGpsDriver fails to initialize.



    Logcat Code:



    2019-03-23 18:19:30.590 2054-2054/com.example.gpsmonitor I/InstantRun: starting instant run server: is main process
    2019-03-23 18:19:30.602 2054-2054/com.example.gpsmonitor I/ActivityThread: handleStopService: token=android.os.BinderProxy@1bda8fc not found.
    2019-03-23 18:19:30.614 2054-2054/com.example.gpsmonitor D/GpsService: GpsService: onCreate
    2019-03-23 18:19:30.614 2054-2054/com.example.gpsmonitor D/GpsService: GpsService: setupGps
    2019-03-23 18:19:30.669 2054-2054/com.example.gpsmonitor I/zygote: Rejecting re-init on previously-failed class java.lang.Class<com.google.android.things.contrib.driver.gps.NmeaGpsModule$1>: java.lang.IncompatibleClassChangeError: Superclass com.google.android.things.pio.UartDeviceCallback of com.google.android.things.contrib.driver.gps.NmeaGpsModule$1 is an interface (declaration of 'com.google.android.things.contrib.driver.gps.NmeaGpsModule$1' appears in /data/app/com.example.gpsmonitor-TvGQRLdwcqrtDMbhjtBn1Q==/split_lib_dependencies_apk.apk)
    2019-03-23 18:19:30.670 2054-2054/com.example.gpsmonitor I/zygote: at void com.google.android.things.contrib.driver.gps.NmeaGpsDriver.<init>(android.content.Context, java.lang.String, int, float, android.os.Handler) (NmeaGpsDriver.java:67)


    It is almost entireley the auto-generated code from Android Studio for Things with Peripherals and set the UART6 for the Pico-Pi-i.MX7d. So I'm wondering what I'm missing.










    share|improve this question


























      1












      1








      1








      Using Android Studio's auto-generated GPS code, during setupGps the NmeaGpsDriver fails to initialize.



      Logcat Code:



      2019-03-23 18:19:30.590 2054-2054/com.example.gpsmonitor I/InstantRun: starting instant run server: is main process
      2019-03-23 18:19:30.602 2054-2054/com.example.gpsmonitor I/ActivityThread: handleStopService: token=android.os.BinderProxy@1bda8fc not found.
      2019-03-23 18:19:30.614 2054-2054/com.example.gpsmonitor D/GpsService: GpsService: onCreate
      2019-03-23 18:19:30.614 2054-2054/com.example.gpsmonitor D/GpsService: GpsService: setupGps
      2019-03-23 18:19:30.669 2054-2054/com.example.gpsmonitor I/zygote: Rejecting re-init on previously-failed class java.lang.Class<com.google.android.things.contrib.driver.gps.NmeaGpsModule$1>: java.lang.IncompatibleClassChangeError: Superclass com.google.android.things.pio.UartDeviceCallback of com.google.android.things.contrib.driver.gps.NmeaGpsModule$1 is an interface (declaration of 'com.google.android.things.contrib.driver.gps.NmeaGpsModule$1' appears in /data/app/com.example.gpsmonitor-TvGQRLdwcqrtDMbhjtBn1Q==/split_lib_dependencies_apk.apk)
      2019-03-23 18:19:30.670 2054-2054/com.example.gpsmonitor I/zygote: at void com.google.android.things.contrib.driver.gps.NmeaGpsDriver.<init>(android.content.Context, java.lang.String, int, float, android.os.Handler) (NmeaGpsDriver.java:67)


      It is almost entireley the auto-generated code from Android Studio for Things with Peripherals and set the UART6 for the Pico-Pi-i.MX7d. So I'm wondering what I'm missing.










      share|improve this question
















      Using Android Studio's auto-generated GPS code, during setupGps the NmeaGpsDriver fails to initialize.



      Logcat Code:



      2019-03-23 18:19:30.590 2054-2054/com.example.gpsmonitor I/InstantRun: starting instant run server: is main process
      2019-03-23 18:19:30.602 2054-2054/com.example.gpsmonitor I/ActivityThread: handleStopService: token=android.os.BinderProxy@1bda8fc not found.
      2019-03-23 18:19:30.614 2054-2054/com.example.gpsmonitor D/GpsService: GpsService: onCreate
      2019-03-23 18:19:30.614 2054-2054/com.example.gpsmonitor D/GpsService: GpsService: setupGps
      2019-03-23 18:19:30.669 2054-2054/com.example.gpsmonitor I/zygote: Rejecting re-init on previously-failed class java.lang.Class<com.google.android.things.contrib.driver.gps.NmeaGpsModule$1>: java.lang.IncompatibleClassChangeError: Superclass com.google.android.things.pio.UartDeviceCallback of com.google.android.things.contrib.driver.gps.NmeaGpsModule$1 is an interface (declaration of 'com.google.android.things.contrib.driver.gps.NmeaGpsModule$1' appears in /data/app/com.example.gpsmonitor-TvGQRLdwcqrtDMbhjtBn1Q==/split_lib_dependencies_apk.apk)
      2019-03-23 18:19:30.670 2054-2054/com.example.gpsmonitor I/zygote: at void com.google.android.things.contrib.driver.gps.NmeaGpsDriver.<init>(android.content.Context, java.lang.String, int, float, android.os.Handler) (NmeaGpsDriver.java:67)


      It is almost entireley the auto-generated code from Android Studio for Things with Peripherals and set the UART6 for the Pico-Pi-i.MX7d. So I'm wondering what I'm missing.







      java uart android-things android-gps nmea






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 4 at 15:19







      SlowlyButSurely

















      asked Mar 23 at 23:24









      SlowlyButSurelySlowlyButSurely

      508




      508






















          1 Answer
          1






          active

          oldest

          votes


















          1














          This is because the Android Studio template is pulling in an older version of the GPS driver that is not compatible with your device. Most likely you just need to update the dependency version in your build.gradle to 1.0:



          dependencies 
          implementation 'com.google.android.things.contrib:driver-gps:1.0'
          compileOnly 'com.google.android.things:androidthings:1.0'



          If that causes you any issues you can also take a look at the GPS driver sample, which is up to date with the 1.0 driver.






          share|improve this answer























          • Thanks, much appreciated. Now, however, I updated gradle and it has changed the error. It says that GpsService doesn't have permissions for com.google.android.things.permission.MANAGE_GNSS_DRIVERS I went into the manifest and added them but it's still saying it doesn't have them. Any ideas?

            – SlowlyButSurely
            Mar 24 at 11:02











          • Also even with the new code from the driver sample it's giving the permission error. ``` java.lang.SecurityException: Caller lacks required permission com.google.android.things.permission.MANAGE_GNSS_DRIVERS ```

            – SlowlyButSurely
            Mar 24 at 11:26







          • 1





            Ok the board just needed a restart :/ Now it's working. Thank you!

            – SlowlyButSurely
            Mar 24 at 12:03











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55319305%2fandroid-things-gpsservice-not-initilizing%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          This is because the Android Studio template is pulling in an older version of the GPS driver that is not compatible with your device. Most likely you just need to update the dependency version in your build.gradle to 1.0:



          dependencies 
          implementation 'com.google.android.things.contrib:driver-gps:1.0'
          compileOnly 'com.google.android.things:androidthings:1.0'



          If that causes you any issues you can also take a look at the GPS driver sample, which is up to date with the 1.0 driver.






          share|improve this answer























          • Thanks, much appreciated. Now, however, I updated gradle and it has changed the error. It says that GpsService doesn't have permissions for com.google.android.things.permission.MANAGE_GNSS_DRIVERS I went into the manifest and added them but it's still saying it doesn't have them. Any ideas?

            – SlowlyButSurely
            Mar 24 at 11:02











          • Also even with the new code from the driver sample it's giving the permission error. ``` java.lang.SecurityException: Caller lacks required permission com.google.android.things.permission.MANAGE_GNSS_DRIVERS ```

            – SlowlyButSurely
            Mar 24 at 11:26







          • 1





            Ok the board just needed a restart :/ Now it's working. Thank you!

            – SlowlyButSurely
            Mar 24 at 12:03















          1














          This is because the Android Studio template is pulling in an older version of the GPS driver that is not compatible with your device. Most likely you just need to update the dependency version in your build.gradle to 1.0:



          dependencies 
          implementation 'com.google.android.things.contrib:driver-gps:1.0'
          compileOnly 'com.google.android.things:androidthings:1.0'



          If that causes you any issues you can also take a look at the GPS driver sample, which is up to date with the 1.0 driver.






          share|improve this answer























          • Thanks, much appreciated. Now, however, I updated gradle and it has changed the error. It says that GpsService doesn't have permissions for com.google.android.things.permission.MANAGE_GNSS_DRIVERS I went into the manifest and added them but it's still saying it doesn't have them. Any ideas?

            – SlowlyButSurely
            Mar 24 at 11:02











          • Also even with the new code from the driver sample it's giving the permission error. ``` java.lang.SecurityException: Caller lacks required permission com.google.android.things.permission.MANAGE_GNSS_DRIVERS ```

            – SlowlyButSurely
            Mar 24 at 11:26







          • 1





            Ok the board just needed a restart :/ Now it's working. Thank you!

            – SlowlyButSurely
            Mar 24 at 12:03













          1












          1








          1







          This is because the Android Studio template is pulling in an older version of the GPS driver that is not compatible with your device. Most likely you just need to update the dependency version in your build.gradle to 1.0:



          dependencies 
          implementation 'com.google.android.things.contrib:driver-gps:1.0'
          compileOnly 'com.google.android.things:androidthings:1.0'



          If that causes you any issues you can also take a look at the GPS driver sample, which is up to date with the 1.0 driver.






          share|improve this answer













          This is because the Android Studio template is pulling in an older version of the GPS driver that is not compatible with your device. Most likely you just need to update the dependency version in your build.gradle to 1.0:



          dependencies 
          implementation 'com.google.android.things.contrib:driver-gps:1.0'
          compileOnly 'com.google.android.things:androidthings:1.0'



          If that causes you any issues you can also take a look at the GPS driver sample, which is up to date with the 1.0 driver.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 24 at 3:25









          DevunwiredDevunwired

          55.5k8109128




          55.5k8109128












          • Thanks, much appreciated. Now, however, I updated gradle and it has changed the error. It says that GpsService doesn't have permissions for com.google.android.things.permission.MANAGE_GNSS_DRIVERS I went into the manifest and added them but it's still saying it doesn't have them. Any ideas?

            – SlowlyButSurely
            Mar 24 at 11:02











          • Also even with the new code from the driver sample it's giving the permission error. ``` java.lang.SecurityException: Caller lacks required permission com.google.android.things.permission.MANAGE_GNSS_DRIVERS ```

            – SlowlyButSurely
            Mar 24 at 11:26







          • 1





            Ok the board just needed a restart :/ Now it's working. Thank you!

            – SlowlyButSurely
            Mar 24 at 12:03

















          • Thanks, much appreciated. Now, however, I updated gradle and it has changed the error. It says that GpsService doesn't have permissions for com.google.android.things.permission.MANAGE_GNSS_DRIVERS I went into the manifest and added them but it's still saying it doesn't have them. Any ideas?

            – SlowlyButSurely
            Mar 24 at 11:02











          • Also even with the new code from the driver sample it's giving the permission error. ``` java.lang.SecurityException: Caller lacks required permission com.google.android.things.permission.MANAGE_GNSS_DRIVERS ```

            – SlowlyButSurely
            Mar 24 at 11:26







          • 1





            Ok the board just needed a restart :/ Now it's working. Thank you!

            – SlowlyButSurely
            Mar 24 at 12:03
















          Thanks, much appreciated. Now, however, I updated gradle and it has changed the error. It says that GpsService doesn't have permissions for com.google.android.things.permission.MANAGE_GNSS_DRIVERS I went into the manifest and added them but it's still saying it doesn't have them. Any ideas?

          – SlowlyButSurely
          Mar 24 at 11:02





          Thanks, much appreciated. Now, however, I updated gradle and it has changed the error. It says that GpsService doesn't have permissions for com.google.android.things.permission.MANAGE_GNSS_DRIVERS I went into the manifest and added them but it's still saying it doesn't have them. Any ideas?

          – SlowlyButSurely
          Mar 24 at 11:02













          Also even with the new code from the driver sample it's giving the permission error. ``` java.lang.SecurityException: Caller lacks required permission com.google.android.things.permission.MANAGE_GNSS_DRIVERS ```

          – SlowlyButSurely
          Mar 24 at 11:26






          Also even with the new code from the driver sample it's giving the permission error. ``` java.lang.SecurityException: Caller lacks required permission com.google.android.things.permission.MANAGE_GNSS_DRIVERS ```

          – SlowlyButSurely
          Mar 24 at 11:26





          1




          1





          Ok the board just needed a restart :/ Now it's working. Thank you!

          – SlowlyButSurely
          Mar 24 at 12:03





          Ok the board just needed a restart :/ Now it's working. Thank you!

          – SlowlyButSurely
          Mar 24 at 12:03



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55319305%2fandroid-things-gpsservice-not-initilizing%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript