React Native Android run causes “Illegal number of arguments for updateHotspot command”












26















I am creating a simple app using React Native for both iOS and Android. I've tested both platforms for a while and all works very well. But recently, I was focusing on iOS and all my functionalities are working perfectly so far. But when I tried it on Android; specifically when I tried to add an item to my existing local data in AsyncStorage it gives me the following error:



illegal number of arguments for updateHotspot command


My app has also other functionality that ads item using AsyncStorage with no problem. But again everything works fine in iOS.



I'm using Genymotion (trial version) to test it in an Android platform.



I tried to search from the Internet but found nothing. It seems to me it's a Java thing.



Update:



I am no longer using Genymotion (trial version expired) but just the emulator from Android Studio this time.



This is the error that I received:



enter image description here










share|improve this question

























  • You might want to check <app_path>/android/settings.gradle and <app_path>/android/app/build.gradle for correct initialization.

    – Jagjot Singh
    Feb 17 '18 at 7:54











  • Based on React Android's code, the event is related to mouse hover. This could be related to your OS on which you test your application with Genymotion. Someone suggested to try to run Genymotion in a VM: stackoverflow.com/questions/19809568/…

    – Syl
    Feb 17 '18 at 9:55











  • @Syl My Gennymotion trial version now expires but it was ran by in a VM (I used VirtualBox) however it has the same error. Outside Genymotion, I also tested on my own Android phone using Expo and also using Android studio but it has the same problem.

    – Edper
    Feb 17 '18 at 12:49













  • @JagjotSingh How do I know that I have the correct initialization? Please forgive my ignorance.

    – Edper
    Feb 17 '18 at 12:50











  • @Edper you'll need to refer each plugin's setup read-me to ensure you are following it correctly.

    – Jagjot Singh
    Feb 18 '18 at 20:09
















26















I am creating a simple app using React Native for both iOS and Android. I've tested both platforms for a while and all works very well. But recently, I was focusing on iOS and all my functionalities are working perfectly so far. But when I tried it on Android; specifically when I tried to add an item to my existing local data in AsyncStorage it gives me the following error:



illegal number of arguments for updateHotspot command


My app has also other functionality that ads item using AsyncStorage with no problem. But again everything works fine in iOS.



I'm using Genymotion (trial version) to test it in an Android platform.



I tried to search from the Internet but found nothing. It seems to me it's a Java thing.



Update:



I am no longer using Genymotion (trial version expired) but just the emulator from Android Studio this time.



This is the error that I received:



enter image description here










share|improve this question

























  • You might want to check <app_path>/android/settings.gradle and <app_path>/android/app/build.gradle for correct initialization.

    – Jagjot Singh
    Feb 17 '18 at 7:54











  • Based on React Android's code, the event is related to mouse hover. This could be related to your OS on which you test your application with Genymotion. Someone suggested to try to run Genymotion in a VM: stackoverflow.com/questions/19809568/…

    – Syl
    Feb 17 '18 at 9:55











  • @Syl My Gennymotion trial version now expires but it was ran by in a VM (I used VirtualBox) however it has the same error. Outside Genymotion, I also tested on my own Android phone using Expo and also using Android studio but it has the same problem.

    – Edper
    Feb 17 '18 at 12:49













  • @JagjotSingh How do I know that I have the correct initialization? Please forgive my ignorance.

    – Edper
    Feb 17 '18 at 12:50











  • @Edper you'll need to refer each plugin's setup read-me to ensure you are following it correctly.

    – Jagjot Singh
    Feb 18 '18 at 20:09














26












26








26


1






I am creating a simple app using React Native for both iOS and Android. I've tested both platforms for a while and all works very well. But recently, I was focusing on iOS and all my functionalities are working perfectly so far. But when I tried it on Android; specifically when I tried to add an item to my existing local data in AsyncStorage it gives me the following error:



illegal number of arguments for updateHotspot command


My app has also other functionality that ads item using AsyncStorage with no problem. But again everything works fine in iOS.



I'm using Genymotion (trial version) to test it in an Android platform.



I tried to search from the Internet but found nothing. It seems to me it's a Java thing.



Update:



I am no longer using Genymotion (trial version expired) but just the emulator from Android Studio this time.



This is the error that I received:



enter image description here










share|improve this question
















I am creating a simple app using React Native for both iOS and Android. I've tested both platforms for a while and all works very well. But recently, I was focusing on iOS and all my functionalities are working perfectly so far. But when I tried it on Android; specifically when I tried to add an item to my existing local data in AsyncStorage it gives me the following error:



illegal number of arguments for updateHotspot command


My app has also other functionality that ads item using AsyncStorage with no problem. But again everything works fine in iOS.



I'm using Genymotion (trial version) to test it in an Android platform.



I tried to search from the Internet but found nothing. It seems to me it's a Java thing.



Update:



I am no longer using Genymotion (trial version expired) but just the emulator from Android Studio this time.



This is the error that I received:



enter image description here







java android react-native






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 3 at 0:49









Simply Ged

2,76631625




2,76631625










asked Jan 26 '18 at 13:49









EdperEdper

7,27712042




7,27712042













  • You might want to check <app_path>/android/settings.gradle and <app_path>/android/app/build.gradle for correct initialization.

    – Jagjot Singh
    Feb 17 '18 at 7:54











  • Based on React Android's code, the event is related to mouse hover. This could be related to your OS on which you test your application with Genymotion. Someone suggested to try to run Genymotion in a VM: stackoverflow.com/questions/19809568/…

    – Syl
    Feb 17 '18 at 9:55











  • @Syl My Gennymotion trial version now expires but it was ran by in a VM (I used VirtualBox) however it has the same error. Outside Genymotion, I also tested on my own Android phone using Expo and also using Android studio but it has the same problem.

    – Edper
    Feb 17 '18 at 12:49













  • @JagjotSingh How do I know that I have the correct initialization? Please forgive my ignorance.

    – Edper
    Feb 17 '18 at 12:50











  • @Edper you'll need to refer each plugin's setup read-me to ensure you are following it correctly.

    – Jagjot Singh
    Feb 18 '18 at 20:09



















  • You might want to check <app_path>/android/settings.gradle and <app_path>/android/app/build.gradle for correct initialization.

    – Jagjot Singh
    Feb 17 '18 at 7:54











  • Based on React Android's code, the event is related to mouse hover. This could be related to your OS on which you test your application with Genymotion. Someone suggested to try to run Genymotion in a VM: stackoverflow.com/questions/19809568/…

    – Syl
    Feb 17 '18 at 9:55











  • @Syl My Gennymotion trial version now expires but it was ran by in a VM (I used VirtualBox) however it has the same error. Outside Genymotion, I also tested on my own Android phone using Expo and also using Android studio but it has the same problem.

    – Edper
    Feb 17 '18 at 12:49













  • @JagjotSingh How do I know that I have the correct initialization? Please forgive my ignorance.

    – Edper
    Feb 17 '18 at 12:50











  • @Edper you'll need to refer each plugin's setup read-me to ensure you are following it correctly.

    – Jagjot Singh
    Feb 18 '18 at 20:09

















You might want to check <app_path>/android/settings.gradle and <app_path>/android/app/build.gradle for correct initialization.

– Jagjot Singh
Feb 17 '18 at 7:54





You might want to check <app_path>/android/settings.gradle and <app_path>/android/app/build.gradle for correct initialization.

– Jagjot Singh
Feb 17 '18 at 7:54













Based on React Android's code, the event is related to mouse hover. This could be related to your OS on which you test your application with Genymotion. Someone suggested to try to run Genymotion in a VM: stackoverflow.com/questions/19809568/…

– Syl
Feb 17 '18 at 9:55





Based on React Android's code, the event is related to mouse hover. This could be related to your OS on which you test your application with Genymotion. Someone suggested to try to run Genymotion in a VM: stackoverflow.com/questions/19809568/…

– Syl
Feb 17 '18 at 9:55













@Syl My Gennymotion trial version now expires but it was ran by in a VM (I used VirtualBox) however it has the same error. Outside Genymotion, I also tested on my own Android phone using Expo and also using Android studio but it has the same problem.

– Edper
Feb 17 '18 at 12:49







@Syl My Gennymotion trial version now expires but it was ran by in a VM (I used VirtualBox) however it has the same error. Outside Genymotion, I also tested on my own Android phone using Expo and also using Android studio but it has the same problem.

– Edper
Feb 17 '18 at 12:49















@JagjotSingh How do I know that I have the correct initialization? Please forgive my ignorance.

– Edper
Feb 17 '18 at 12:50





@JagjotSingh How do I know that I have the correct initialization? Please forgive my ignorance.

– Edper
Feb 17 '18 at 12:50













@Edper you'll need to refer each plugin's setup read-me to ensure you are following it correctly.

– Jagjot Singh
Feb 18 '18 at 20:09





@Edper you'll need to refer each plugin's setup read-me to ensure you are following it correctly.

– Jagjot Singh
Feb 18 '18 at 20:09












1 Answer
1






active

oldest

votes


















1














As you have mentioned you have other features in the application which seem to work perfectly fine in ios built of your application but on android side it causes you the bug! this bug is mostly relevant to




Missing some implementation command in your gradle and also not writing the command of project exporting in your setting.gradle! simply try react-native link if that could do that automatically else type manually and this should go away!




What is React Native link to me han?



wellReact native link tries to bind your Lib's configuration to both ios and android native code! its some time needed for some libraries/3rd party code and some time not!



It specifically targets in android system to have! exported modules in settings.gradle; along side your app level build.gradle to have implementation in dependencies and also links the library main module to your MyApplication file in java.



but here is a gotcha sometime it does not do! I think due to some poor or low standard coded libraries (no offence)! and some time process needs extra care so instead of relying on linking people like to go for manually linking ! NATIVE CODE IS TRICKY in this kind of nature you know.



bottom line



try linking! or do it manually! read the docs of last library you added before falling into a pit hole like this ! Especially in android side of the code!






share|improve this answer
























    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%2f48462624%2freact-native-android-run-causes-illegal-number-of-arguments-for-updatehotspot-c%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














    As you have mentioned you have other features in the application which seem to work perfectly fine in ios built of your application but on android side it causes you the bug! this bug is mostly relevant to




    Missing some implementation command in your gradle and also not writing the command of project exporting in your setting.gradle! simply try react-native link if that could do that automatically else type manually and this should go away!




    What is React Native link to me han?



    wellReact native link tries to bind your Lib's configuration to both ios and android native code! its some time needed for some libraries/3rd party code and some time not!



    It specifically targets in android system to have! exported modules in settings.gradle; along side your app level build.gradle to have implementation in dependencies and also links the library main module to your MyApplication file in java.



    but here is a gotcha sometime it does not do! I think due to some poor or low standard coded libraries (no offence)! and some time process needs extra care so instead of relying on linking people like to go for manually linking ! NATIVE CODE IS TRICKY in this kind of nature you know.



    bottom line



    try linking! or do it manually! read the docs of last library you added before falling into a pit hole like this ! Especially in android side of the code!






    share|improve this answer




























      1














      As you have mentioned you have other features in the application which seem to work perfectly fine in ios built of your application but on android side it causes you the bug! this bug is mostly relevant to




      Missing some implementation command in your gradle and also not writing the command of project exporting in your setting.gradle! simply try react-native link if that could do that automatically else type manually and this should go away!




      What is React Native link to me han?



      wellReact native link tries to bind your Lib's configuration to both ios and android native code! its some time needed for some libraries/3rd party code and some time not!



      It specifically targets in android system to have! exported modules in settings.gradle; along side your app level build.gradle to have implementation in dependencies and also links the library main module to your MyApplication file in java.



      but here is a gotcha sometime it does not do! I think due to some poor or low standard coded libraries (no offence)! and some time process needs extra care so instead of relying on linking people like to go for manually linking ! NATIVE CODE IS TRICKY in this kind of nature you know.



      bottom line



      try linking! or do it manually! read the docs of last library you added before falling into a pit hole like this ! Especially in android side of the code!






      share|improve this answer


























        1












        1








        1







        As you have mentioned you have other features in the application which seem to work perfectly fine in ios built of your application but on android side it causes you the bug! this bug is mostly relevant to




        Missing some implementation command in your gradle and also not writing the command of project exporting in your setting.gradle! simply try react-native link if that could do that automatically else type manually and this should go away!




        What is React Native link to me han?



        wellReact native link tries to bind your Lib's configuration to both ios and android native code! its some time needed for some libraries/3rd party code and some time not!



        It specifically targets in android system to have! exported modules in settings.gradle; along side your app level build.gradle to have implementation in dependencies and also links the library main module to your MyApplication file in java.



        but here is a gotcha sometime it does not do! I think due to some poor or low standard coded libraries (no offence)! and some time process needs extra care so instead of relying on linking people like to go for manually linking ! NATIVE CODE IS TRICKY in this kind of nature you know.



        bottom line



        try linking! or do it manually! read the docs of last library you added before falling into a pit hole like this ! Especially in android side of the code!






        share|improve this answer













        As you have mentioned you have other features in the application which seem to work perfectly fine in ios built of your application but on android side it causes you the bug! this bug is mostly relevant to




        Missing some implementation command in your gradle and also not writing the command of project exporting in your setting.gradle! simply try react-native link if that could do that automatically else type manually and this should go away!




        What is React Native link to me han?



        wellReact native link tries to bind your Lib's configuration to both ios and android native code! its some time needed for some libraries/3rd party code and some time not!



        It specifically targets in android system to have! exported modules in settings.gradle; along side your app level build.gradle to have implementation in dependencies and also links the library main module to your MyApplication file in java.



        but here is a gotcha sometime it does not do! I think due to some poor or low standard coded libraries (no offence)! and some time process needs extra care so instead of relying on linking people like to go for manually linking ! NATIVE CODE IS TRICKY in this kind of nature you know.



        bottom line



        try linking! or do it manually! read the docs of last library you added before falling into a pit hole like this ! Especially in android side of the code!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 2 at 21:02









        Rizwan attaRizwan atta

        1,5462820




        1,5462820
































            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%2f48462624%2freact-native-android-run-causes-illegal-number-of-arguments-for-updatehotspot-c%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

            Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

            Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

            A Topological Invariant for $pi_3(U(n))$