Android Realm initial setup











up vote
0
down vote

favorite












I would like to start using Realm for android but i having problem setting it up. i follow the instructions located at https://realm.io/docs/java/latest/#getting-started but still doesnt work.

here is my gradle(project)
enter image description here



here is my gradle (app)
enter image description here



enter image description here



i create a class and extend RealmObject, android studio complains and give me message "Cannot revolve symbol Realmobject". here is a snaphot of my class
enter image description here



my gradle are syncing up fine and there is no error while syncing but for some reason i am not able to start coding Realm object. can someone help me and tell me what i am doing wrong? im using android studio 3.1.3










share|improve this question






















  • Have your gradle sync went normal? Please, check if there was an error during sync. Also, the tutorial you mentioned only requires classpath and apply plugin, try removing the rest of your additions.
    – Anhayt Ananun
    Nov 10 at 22:04










  • yes, gradle sync went normal. no error. also i removed the rest of the additions and nothing. i added the additions because it was not working with classpath and plugin. any ideas?
    – yoohoo
    Nov 10 at 23:04










  • Realm 5+ needs Android-Adapters 3+, and you should follow the guide realm.io/docs/java/latest/…
    – EpicPandaForce
    Nov 10 at 23:40










  • hi EpicPandaForce, i changed adapter to 3+ and also follow guide. it is still not working. gradle compiles but i cannot use realm objects
    – yoohoo
    Nov 11 at 1:57










  • i found the problem. i need to add apply plugin: 'realm-android' to gradle(feature) file as well
    – yoohoo
    Nov 11 at 2:20















up vote
0
down vote

favorite












I would like to start using Realm for android but i having problem setting it up. i follow the instructions located at https://realm.io/docs/java/latest/#getting-started but still doesnt work.

here is my gradle(project)
enter image description here



here is my gradle (app)
enter image description here



enter image description here



i create a class and extend RealmObject, android studio complains and give me message "Cannot revolve symbol Realmobject". here is a snaphot of my class
enter image description here



my gradle are syncing up fine and there is no error while syncing but for some reason i am not able to start coding Realm object. can someone help me and tell me what i am doing wrong? im using android studio 3.1.3










share|improve this question






















  • Have your gradle sync went normal? Please, check if there was an error during sync. Also, the tutorial you mentioned only requires classpath and apply plugin, try removing the rest of your additions.
    – Anhayt Ananun
    Nov 10 at 22:04










  • yes, gradle sync went normal. no error. also i removed the rest of the additions and nothing. i added the additions because it was not working with classpath and plugin. any ideas?
    – yoohoo
    Nov 10 at 23:04










  • Realm 5+ needs Android-Adapters 3+, and you should follow the guide realm.io/docs/java/latest/…
    – EpicPandaForce
    Nov 10 at 23:40










  • hi EpicPandaForce, i changed adapter to 3+ and also follow guide. it is still not working. gradle compiles but i cannot use realm objects
    – yoohoo
    Nov 11 at 1:57










  • i found the problem. i need to add apply plugin: 'realm-android' to gradle(feature) file as well
    – yoohoo
    Nov 11 at 2:20













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I would like to start using Realm for android but i having problem setting it up. i follow the instructions located at https://realm.io/docs/java/latest/#getting-started but still doesnt work.

here is my gradle(project)
enter image description here



here is my gradle (app)
enter image description here



enter image description here



i create a class and extend RealmObject, android studio complains and give me message "Cannot revolve symbol Realmobject". here is a snaphot of my class
enter image description here



my gradle are syncing up fine and there is no error while syncing but for some reason i am not able to start coding Realm object. can someone help me and tell me what i am doing wrong? im using android studio 3.1.3










share|improve this question













I would like to start using Realm for android but i having problem setting it up. i follow the instructions located at https://realm.io/docs/java/latest/#getting-started but still doesnt work.

here is my gradle(project)
enter image description here



here is my gradle (app)
enter image description here



enter image description here



i create a class and extend RealmObject, android studio complains and give me message "Cannot revolve symbol Realmobject". here is a snaphot of my class
enter image description here



my gradle are syncing up fine and there is no error while syncing but for some reason i am not able to start coding Realm object. can someone help me and tell me what i am doing wrong? im using android studio 3.1.3







android installation realm






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 10 at 21:49









yoohoo

426




426












  • Have your gradle sync went normal? Please, check if there was an error during sync. Also, the tutorial you mentioned only requires classpath and apply plugin, try removing the rest of your additions.
    – Anhayt Ananun
    Nov 10 at 22:04










  • yes, gradle sync went normal. no error. also i removed the rest of the additions and nothing. i added the additions because it was not working with classpath and plugin. any ideas?
    – yoohoo
    Nov 10 at 23:04










  • Realm 5+ needs Android-Adapters 3+, and you should follow the guide realm.io/docs/java/latest/…
    – EpicPandaForce
    Nov 10 at 23:40










  • hi EpicPandaForce, i changed adapter to 3+ and also follow guide. it is still not working. gradle compiles but i cannot use realm objects
    – yoohoo
    Nov 11 at 1:57










  • i found the problem. i need to add apply plugin: 'realm-android' to gradle(feature) file as well
    – yoohoo
    Nov 11 at 2:20


















  • Have your gradle sync went normal? Please, check if there was an error during sync. Also, the tutorial you mentioned only requires classpath and apply plugin, try removing the rest of your additions.
    – Anhayt Ananun
    Nov 10 at 22:04










  • yes, gradle sync went normal. no error. also i removed the rest of the additions and nothing. i added the additions because it was not working with classpath and plugin. any ideas?
    – yoohoo
    Nov 10 at 23:04










  • Realm 5+ needs Android-Adapters 3+, and you should follow the guide realm.io/docs/java/latest/…
    – EpicPandaForce
    Nov 10 at 23:40










  • hi EpicPandaForce, i changed adapter to 3+ and also follow guide. it is still not working. gradle compiles but i cannot use realm objects
    – yoohoo
    Nov 11 at 1:57










  • i found the problem. i need to add apply plugin: 'realm-android' to gradle(feature) file as well
    – yoohoo
    Nov 11 at 2:20
















Have your gradle sync went normal? Please, check if there was an error during sync. Also, the tutorial you mentioned only requires classpath and apply plugin, try removing the rest of your additions.
– Anhayt Ananun
Nov 10 at 22:04




Have your gradle sync went normal? Please, check if there was an error during sync. Also, the tutorial you mentioned only requires classpath and apply plugin, try removing the rest of your additions.
– Anhayt Ananun
Nov 10 at 22:04












yes, gradle sync went normal. no error. also i removed the rest of the additions and nothing. i added the additions because it was not working with classpath and plugin. any ideas?
– yoohoo
Nov 10 at 23:04




yes, gradle sync went normal. no error. also i removed the rest of the additions and nothing. i added the additions because it was not working with classpath and plugin. any ideas?
– yoohoo
Nov 10 at 23:04












Realm 5+ needs Android-Adapters 3+, and you should follow the guide realm.io/docs/java/latest/…
– EpicPandaForce
Nov 10 at 23:40




Realm 5+ needs Android-Adapters 3+, and you should follow the guide realm.io/docs/java/latest/…
– EpicPandaForce
Nov 10 at 23:40












hi EpicPandaForce, i changed adapter to 3+ and also follow guide. it is still not working. gradle compiles but i cannot use realm objects
– yoohoo
Nov 11 at 1:57




hi EpicPandaForce, i changed adapter to 3+ and also follow guide. it is still not working. gradle compiles but i cannot use realm objects
– yoohoo
Nov 11 at 1:57












i found the problem. i need to add apply plugin: 'realm-android' to gradle(feature) file as well
– yoohoo
Nov 11 at 2:20




i found the problem. i need to add apply plugin: 'realm-android' to gradle(feature) file as well
– yoohoo
Nov 11 at 2:20












1 Answer
1






active

oldest

votes

















up vote
1
down vote













the problem is that apply plugin: 'realm-android'
also needs to be added to gradle(feature) file






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',
    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%2f53243746%2fandroid-realm-initial-setup%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








    up vote
    1
    down vote













    the problem is that apply plugin: 'realm-android'
    also needs to be added to gradle(feature) file






    share|improve this answer

























      up vote
      1
      down vote













      the problem is that apply plugin: 'realm-android'
      also needs to be added to gradle(feature) file






      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        the problem is that apply plugin: 'realm-android'
        also needs to be added to gradle(feature) file






        share|improve this answer












        the problem is that apply plugin: 'realm-android'
        also needs to be added to gradle(feature) file







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 11 at 2:21









        yoohoo

        426




        426






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243746%2fandroid-realm-initial-setup%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

            Florida Star v. B. J. F.

            Danny Elfman

            Lugert, Oklahoma