Instrumentation using gradle on Android App












-1















i am using ActiveJDBC for my Android App, and Im having trouble on instrumentation.



Here is my build.gradle



apply plugin: 'java'
apply plugin: 'org.javalite.activejdbc'

buildscript {
repositories {
google()
jcenter()
mavenCentral()
maven {url 'http://repo.javalite.io'}
}

dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath group: 'org.javalite', name: 'activejdbc-gradle-plugin', version: '2.0'
}
}

allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven {url 'http://repo.javalite.io'}
}
}

dependencies {
// compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.25'
compile group: 'org.javalite', name: 'activejdbc', version: '2.0'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.5'
testCompile group: 'junit', name: 'junit', version: '4.12'
}

task run(dependsOn: 'build', type: JavaExec) {
main = 'ph.com.partnersolutions.activejdbforandroidtest.MainActivity'
classpath = sourceSets.main.runtimeClasspath
}


But this doesn't work. Am i doing it right ?










share|improve this question





























    -1















    i am using ActiveJDBC for my Android App, and Im having trouble on instrumentation.



    Here is my build.gradle



    apply plugin: 'java'
    apply plugin: 'org.javalite.activejdbc'

    buildscript {
    repositories {
    google()
    jcenter()
    mavenCentral()
    maven {url 'http://repo.javalite.io'}
    }

    dependencies {
    classpath 'com.android.tools.build:gradle:3.2.1'
    classpath group: 'org.javalite', name: 'activejdbc-gradle-plugin', version: '2.0'
    }
    }

    allprojects {
    repositories {
    google()
    jcenter()
    mavenCentral()
    maven {url 'http://repo.javalite.io'}
    }
    }

    dependencies {
    // compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.25'
    compile group: 'org.javalite', name: 'activejdbc', version: '2.0'
    compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.5'
    testCompile group: 'junit', name: 'junit', version: '4.12'
    }

    task run(dependsOn: 'build', type: JavaExec) {
    main = 'ph.com.partnersolutions.activejdbforandroidtest.MainActivity'
    classpath = sourceSets.main.runtimeClasspath
    }


    But this doesn't work. Am i doing it right ?










    share|improve this question



























      -1












      -1








      -1








      i am using ActiveJDBC for my Android App, and Im having trouble on instrumentation.



      Here is my build.gradle



      apply plugin: 'java'
      apply plugin: 'org.javalite.activejdbc'

      buildscript {
      repositories {
      google()
      jcenter()
      mavenCentral()
      maven {url 'http://repo.javalite.io'}
      }

      dependencies {
      classpath 'com.android.tools.build:gradle:3.2.1'
      classpath group: 'org.javalite', name: 'activejdbc-gradle-plugin', version: '2.0'
      }
      }

      allprojects {
      repositories {
      google()
      jcenter()
      mavenCentral()
      maven {url 'http://repo.javalite.io'}
      }
      }

      dependencies {
      // compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.25'
      compile group: 'org.javalite', name: 'activejdbc', version: '2.0'
      compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.5'
      testCompile group: 'junit', name: 'junit', version: '4.12'
      }

      task run(dependsOn: 'build', type: JavaExec) {
      main = 'ph.com.partnersolutions.activejdbforandroidtest.MainActivity'
      classpath = sourceSets.main.runtimeClasspath
      }


      But this doesn't work. Am i doing it right ?










      share|improve this question
















      i am using ActiveJDBC for my Android App, and Im having trouble on instrumentation.



      Here is my build.gradle



      apply plugin: 'java'
      apply plugin: 'org.javalite.activejdbc'

      buildscript {
      repositories {
      google()
      jcenter()
      mavenCentral()
      maven {url 'http://repo.javalite.io'}
      }

      dependencies {
      classpath 'com.android.tools.build:gradle:3.2.1'
      classpath group: 'org.javalite', name: 'activejdbc-gradle-plugin', version: '2.0'
      }
      }

      allprojects {
      repositories {
      google()
      jcenter()
      mavenCentral()
      maven {url 'http://repo.javalite.io'}
      }
      }

      dependencies {
      // compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.25'
      compile group: 'org.javalite', name: 'activejdbc', version: '2.0'
      compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.5'
      testCompile group: 'junit', name: 'junit', version: '4.12'
      }

      task run(dependsOn: 'build', type: JavaExec) {
      main = 'ph.com.partnersolutions.activejdbforandroidtest.MainActivity'
      classpath = sourceSets.main.runtimeClasspath
      }


      But this doesn't work. Am i doing it right ?







      android sqlite3 activejdbc javalite






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 26 '18 at 5:48







      Vincent Dingding

















      asked Nov 26 '18 at 5:34









      Vincent DingdingVincent Dingding

      145




      145
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You are not providing any information on what is not working. However, you are using a JavaLite released version 2.0 and also using the outdated SNAPSHOT repo http://repo.javalite.io which you do not need. I suggest you switch to latest version 2.2 and remove the repo http://repo.javalite.io because it is not available anymore. Months ago we switched to Sonatype as most Java projects. You can find the info here:
          http://javalite.io/releases#current-snapshot-2.3-snapshot



          Also, please check out the working Gradle example: https://github.com/javalite/activejdbc-gradle






          share|improve this answer
























          • The instrumentation doesn't work. I followed the Gradle example which looks easy but I still got the error that says "> java.io.FileNotFoundException: C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamainactivejdbc_models.properties (The system cannot find the path specified)", I already applied your update too, but this error still exist.

            – Vincent Dingding
            Nov 27 '18 at 9:00













          • I'm not familiar with your project, but I developed a Gradle sample that works. You need to see what is wrong with your config. The directory C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamain is strange, maybe it is a place to look

            – ipolevoy
            Nov 27 '18 at 17:36













          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%2f53475244%2finstrumentation-using-gradle-on-android-app%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









          0














          You are not providing any information on what is not working. However, you are using a JavaLite released version 2.0 and also using the outdated SNAPSHOT repo http://repo.javalite.io which you do not need. I suggest you switch to latest version 2.2 and remove the repo http://repo.javalite.io because it is not available anymore. Months ago we switched to Sonatype as most Java projects. You can find the info here:
          http://javalite.io/releases#current-snapshot-2.3-snapshot



          Also, please check out the working Gradle example: https://github.com/javalite/activejdbc-gradle






          share|improve this answer
























          • The instrumentation doesn't work. I followed the Gradle example which looks easy but I still got the error that says "> java.io.FileNotFoundException: C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamainactivejdbc_models.properties (The system cannot find the path specified)", I already applied your update too, but this error still exist.

            – Vincent Dingding
            Nov 27 '18 at 9:00













          • I'm not familiar with your project, but I developed a Gradle sample that works. You need to see what is wrong with your config. The directory C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamain is strange, maybe it is a place to look

            – ipolevoy
            Nov 27 '18 at 17:36


















          0














          You are not providing any information on what is not working. However, you are using a JavaLite released version 2.0 and also using the outdated SNAPSHOT repo http://repo.javalite.io which you do not need. I suggest you switch to latest version 2.2 and remove the repo http://repo.javalite.io because it is not available anymore. Months ago we switched to Sonatype as most Java projects. You can find the info here:
          http://javalite.io/releases#current-snapshot-2.3-snapshot



          Also, please check out the working Gradle example: https://github.com/javalite/activejdbc-gradle






          share|improve this answer
























          • The instrumentation doesn't work. I followed the Gradle example which looks easy but I still got the error that says "> java.io.FileNotFoundException: C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamainactivejdbc_models.properties (The system cannot find the path specified)", I already applied your update too, but this error still exist.

            – Vincent Dingding
            Nov 27 '18 at 9:00













          • I'm not familiar with your project, but I developed a Gradle sample that works. You need to see what is wrong with your config. The directory C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamain is strange, maybe it is a place to look

            – ipolevoy
            Nov 27 '18 at 17:36
















          0












          0








          0







          You are not providing any information on what is not working. However, you are using a JavaLite released version 2.0 and also using the outdated SNAPSHOT repo http://repo.javalite.io which you do not need. I suggest you switch to latest version 2.2 and remove the repo http://repo.javalite.io because it is not available anymore. Months ago we switched to Sonatype as most Java projects. You can find the info here:
          http://javalite.io/releases#current-snapshot-2.3-snapshot



          Also, please check out the working Gradle example: https://github.com/javalite/activejdbc-gradle






          share|improve this answer













          You are not providing any information on what is not working. However, you are using a JavaLite released version 2.0 and also using the outdated SNAPSHOT repo http://repo.javalite.io which you do not need. I suggest you switch to latest version 2.2 and remove the repo http://repo.javalite.io because it is not available anymore. Months ago we switched to Sonatype as most Java projects. You can find the info here:
          http://javalite.io/releases#current-snapshot-2.3-snapshot



          Also, please check out the working Gradle example: https://github.com/javalite/activejdbc-gradle







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 26 '18 at 18:04









          ipolevoyipolevoy

          4,19811934




          4,19811934













          • The instrumentation doesn't work. I followed the Gradle example which looks easy but I still got the error that says "> java.io.FileNotFoundException: C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamainactivejdbc_models.properties (The system cannot find the path specified)", I already applied your update too, but this error still exist.

            – Vincent Dingding
            Nov 27 '18 at 9:00













          • I'm not familiar with your project, but I developed a Gradle sample that works. You need to see what is wrong with your config. The directory C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamain is strange, maybe it is a place to look

            – ipolevoy
            Nov 27 '18 at 17:36





















          • The instrumentation doesn't work. I followed the Gradle example which looks easy but I still got the error that says "> java.io.FileNotFoundException: C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamainactivejdbc_models.properties (The system cannot find the path specified)", I already applied your update too, but this error still exist.

            – Vincent Dingding
            Nov 27 '18 at 9:00













          • I'm not familiar with your project, but I developed a Gradle sample that works. You need to see what is wrong with your config. The directory C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamain is strange, maybe it is a place to look

            – ipolevoy
            Nov 27 '18 at 17:36



















          The instrumentation doesn't work. I followed the Gradle example which looks easy but I still got the error that says "> java.io.FileNotFoundException: C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamainactivejdbc_models.properties (The system cannot find the path specified)", I already applied your update too, but this error still exist.

          – Vincent Dingding
          Nov 27 '18 at 9:00







          The instrumentation doesn't work. I followed the Gradle example which looks easy but I still got the error that says "> java.io.FileNotFoundException: C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamainactivejdbc_models.properties (The system cannot find the path specified)", I already applied your update too, but this error still exist.

          – Vincent Dingding
          Nov 27 '18 at 9:00















          I'm not familiar with your project, but I developed a Gradle sample that works. You need to see what is wrong with your config. The directory C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamain is strange, maybe it is a place to look

          – ipolevoy
          Nov 27 '18 at 17:36







          I'm not familiar with your project, but I developed a Gradle sample that works. You need to see what is wrong with your config. The directory C:UsersvadinAndroidStudioProjectsTestJDBCbuildclassesjavamain is strange, maybe it is a place to look

          – ipolevoy
          Nov 27 '18 at 17:36






















          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%2f53475244%2finstrumentation-using-gradle-on-android-app%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

          Create new schema in PostgreSQL using DBeaver

          Deepest pit of an array with Javascript: test on Codility

          Fotorealismo