Android studio 3.2 error project imported by version 2.4












0














I have a big problem with the new Android Studio and I have check more post on StackOverflow but the problem are not fixed.
I have a project developed with old version Android Studio...the version is 2.4
Now I have imported this project into Android Studio 3.2 to do some change and build a new apk, but I receive some error:
First Error: Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018



and my grandle is this:



buildscript {
repositories {
maven { url 'https://maven.fabric.io/public'}
}

dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
maven { url 'https://maven.fabric.io/public' }
}


android {
useLibrary 'org.apache.http.legacy'
compileSdkVersion 24
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "it.ingv.android"
minSdkVersion 19
targetSdkVersion 25
versionCode 15
versionName "2.4"

// Enabling multidex support.
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
/*dexOptions {
incremental true
javaMaxHeapSize "4g"
}*/
productFlavors {
}
}

dependencies {
//implementation 'com.google.android.gms:play-services:3.2.25'
implementation files('libs/commons-io-2.4.jar')
implementation files('libs/gson-2.2.4.jar')
//implementation files('libs/nineoldandroids-library-2.4.0.jar')
implementation 'com.github.nirhart:parallaxscroll:1.0'
//implementation 'com.android.support:appcompat-v7:21.0.3'
implementation files('libs/Volley.jar')
implementation project(':PullToRefreshmaster')
implementation('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
transitive = true;
}
implementation files('libs/picasso-2.5.2.jar')
implementation 'com.nispok:snackbar:2.11.+'
implementation 'com.williammora:snackbar:1.4.0'
implementation('com.crashlytics.sdk.android:crashlytics-ndk:1.1.1@aar') {
transitive = true;
}
implementation 'me.drakeet.materialdialog:library:1.2.2'
//implementation 'com.android.support:support-v4:23.0.1'
implementation 'com.android.support:appcompat-v7:21.0.3'
implementation 'com.android.support:design:24.2.1'
implementation 'com.android.support:support-v4:24.2.1'
implementation 'com.google.android.gms:play-services:8.4.0'
implementation files('libs/apache-httpcomponents-httpclient.jar')
implementation files('libs/apache-httpcomponents-httpcore.jar')
implementation 'com.code-troopers.betterpickers:library:3.1.0'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.android.support:multidex:1.0.1'
}

crashlytics {
enableNdk true
androidNdkOut 'src/main/obj'
androidNdkLibsOut 'src/main/libs'
}


Other error is: The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin. Perhaps you misspelled something?
And i have seen this post to fix the error: error



But using the solution that post say i have a new error:
Cannot read packageName from C:Users.....appAndroidManifest.xml



Any help, please? I'm becoming crazy










share|improve this question



























    0














    I have a big problem with the new Android Studio and I have check more post on StackOverflow but the problem are not fixed.
    I have a project developed with old version Android Studio...the version is 2.4
    Now I have imported this project into Android Studio 3.2 to do some change and build a new apk, but I receive some error:
    First Error: Configuration 'compile' is obsolete and has been replaced with 'implementation'.
    It will be removed at the end of 2018



    and my grandle is this:



    buildscript {
    repositories {
    maven { url 'https://maven.fabric.io/public'}
    }

    dependencies {
    classpath 'io.fabric.tools:gradle:1.+'
    }
    }
    apply plugin: 'com.android.application'
    apply plugin: 'io.fabric'

    repositories {
    maven { url 'https://maven.fabric.io/public' }
    }


    android {
    useLibrary 'org.apache.http.legacy'
    compileSdkVersion 24
    buildToolsVersion '28.0.3'
    defaultConfig {
    applicationId "it.ingv.android"
    minSdkVersion 19
    targetSdkVersion 25
    versionCode 15
    versionName "2.4"

    // Enabling multidex support.
    multiDexEnabled true
    }
    buildTypes {
    release {
    minifyEnabled false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    }
    /*dexOptions {
    incremental true
    javaMaxHeapSize "4g"
    }*/
    productFlavors {
    }
    }

    dependencies {
    //implementation 'com.google.android.gms:play-services:3.2.25'
    implementation files('libs/commons-io-2.4.jar')
    implementation files('libs/gson-2.2.4.jar')
    //implementation files('libs/nineoldandroids-library-2.4.0.jar')
    implementation 'com.github.nirhart:parallaxscroll:1.0'
    //implementation 'com.android.support:appcompat-v7:21.0.3'
    implementation files('libs/Volley.jar')
    implementation project(':PullToRefreshmaster')
    implementation('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
    transitive = true;
    }
    implementation files('libs/picasso-2.5.2.jar')
    implementation 'com.nispok:snackbar:2.11.+'
    implementation 'com.williammora:snackbar:1.4.0'
    implementation('com.crashlytics.sdk.android:crashlytics-ndk:1.1.1@aar') {
    transitive = true;
    }
    implementation 'me.drakeet.materialdialog:library:1.2.2'
    //implementation 'com.android.support:support-v4:23.0.1'
    implementation 'com.android.support:appcompat-v7:21.0.3'
    implementation 'com.android.support:design:24.2.1'
    implementation 'com.android.support:support-v4:24.2.1'
    implementation 'com.google.android.gms:play-services:8.4.0'
    implementation files('libs/apache-httpcomponents-httpclient.jar')
    implementation files('libs/apache-httpcomponents-httpcore.jar')
    implementation 'com.code-troopers.betterpickers:library:3.1.0'
    implementation 'com.nineoldandroids:library:2.4.0'
    implementation 'com.rengwuxian.materialedittext:library:2.1.4'
    implementation 'com.android.support:multidex:1.0.1'
    }

    crashlytics {
    enableNdk true
    androidNdkOut 'src/main/obj'
    androidNdkLibsOut 'src/main/libs'
    }


    Other error is: The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin. Perhaps you misspelled something?
    And i have seen this post to fix the error: error



    But using the solution that post say i have a new error:
    Cannot read packageName from C:Users.....appAndroidManifest.xml



    Any help, please? I'm becoming crazy










    share|improve this question

























      0












      0








      0







      I have a big problem with the new Android Studio and I have check more post on StackOverflow but the problem are not fixed.
      I have a project developed with old version Android Studio...the version is 2.4
      Now I have imported this project into Android Studio 3.2 to do some change and build a new apk, but I receive some error:
      First Error: Configuration 'compile' is obsolete and has been replaced with 'implementation'.
      It will be removed at the end of 2018



      and my grandle is this:



      buildscript {
      repositories {
      maven { url 'https://maven.fabric.io/public'}
      }

      dependencies {
      classpath 'io.fabric.tools:gradle:1.+'
      }
      }
      apply plugin: 'com.android.application'
      apply plugin: 'io.fabric'

      repositories {
      maven { url 'https://maven.fabric.io/public' }
      }


      android {
      useLibrary 'org.apache.http.legacy'
      compileSdkVersion 24
      buildToolsVersion '28.0.3'
      defaultConfig {
      applicationId "it.ingv.android"
      minSdkVersion 19
      targetSdkVersion 25
      versionCode 15
      versionName "2.4"

      // Enabling multidex support.
      multiDexEnabled true
      }
      buildTypes {
      release {
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
      }
      /*dexOptions {
      incremental true
      javaMaxHeapSize "4g"
      }*/
      productFlavors {
      }
      }

      dependencies {
      //implementation 'com.google.android.gms:play-services:3.2.25'
      implementation files('libs/commons-io-2.4.jar')
      implementation files('libs/gson-2.2.4.jar')
      //implementation files('libs/nineoldandroids-library-2.4.0.jar')
      implementation 'com.github.nirhart:parallaxscroll:1.0'
      //implementation 'com.android.support:appcompat-v7:21.0.3'
      implementation files('libs/Volley.jar')
      implementation project(':PullToRefreshmaster')
      implementation('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
      transitive = true;
      }
      implementation files('libs/picasso-2.5.2.jar')
      implementation 'com.nispok:snackbar:2.11.+'
      implementation 'com.williammora:snackbar:1.4.0'
      implementation('com.crashlytics.sdk.android:crashlytics-ndk:1.1.1@aar') {
      transitive = true;
      }
      implementation 'me.drakeet.materialdialog:library:1.2.2'
      //implementation 'com.android.support:support-v4:23.0.1'
      implementation 'com.android.support:appcompat-v7:21.0.3'
      implementation 'com.android.support:design:24.2.1'
      implementation 'com.android.support:support-v4:24.2.1'
      implementation 'com.google.android.gms:play-services:8.4.0'
      implementation files('libs/apache-httpcomponents-httpclient.jar')
      implementation files('libs/apache-httpcomponents-httpcore.jar')
      implementation 'com.code-troopers.betterpickers:library:3.1.0'
      implementation 'com.nineoldandroids:library:2.4.0'
      implementation 'com.rengwuxian.materialedittext:library:2.1.4'
      implementation 'com.android.support:multidex:1.0.1'
      }

      crashlytics {
      enableNdk true
      androidNdkOut 'src/main/obj'
      androidNdkLibsOut 'src/main/libs'
      }


      Other error is: The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin. Perhaps you misspelled something?
      And i have seen this post to fix the error: error



      But using the solution that post say i have a new error:
      Cannot read packageName from C:Users.....appAndroidManifest.xml



      Any help, please? I'm becoming crazy










      share|improve this question













      I have a big problem with the new Android Studio and I have check more post on StackOverflow but the problem are not fixed.
      I have a project developed with old version Android Studio...the version is 2.4
      Now I have imported this project into Android Studio 3.2 to do some change and build a new apk, but I receive some error:
      First Error: Configuration 'compile' is obsolete and has been replaced with 'implementation'.
      It will be removed at the end of 2018



      and my grandle is this:



      buildscript {
      repositories {
      maven { url 'https://maven.fabric.io/public'}
      }

      dependencies {
      classpath 'io.fabric.tools:gradle:1.+'
      }
      }
      apply plugin: 'com.android.application'
      apply plugin: 'io.fabric'

      repositories {
      maven { url 'https://maven.fabric.io/public' }
      }


      android {
      useLibrary 'org.apache.http.legacy'
      compileSdkVersion 24
      buildToolsVersion '28.0.3'
      defaultConfig {
      applicationId "it.ingv.android"
      minSdkVersion 19
      targetSdkVersion 25
      versionCode 15
      versionName "2.4"

      // Enabling multidex support.
      multiDexEnabled true
      }
      buildTypes {
      release {
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
      }
      /*dexOptions {
      incremental true
      javaMaxHeapSize "4g"
      }*/
      productFlavors {
      }
      }

      dependencies {
      //implementation 'com.google.android.gms:play-services:3.2.25'
      implementation files('libs/commons-io-2.4.jar')
      implementation files('libs/gson-2.2.4.jar')
      //implementation files('libs/nineoldandroids-library-2.4.0.jar')
      implementation 'com.github.nirhart:parallaxscroll:1.0'
      //implementation 'com.android.support:appcompat-v7:21.0.3'
      implementation files('libs/Volley.jar')
      implementation project(':PullToRefreshmaster')
      implementation('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
      transitive = true;
      }
      implementation files('libs/picasso-2.5.2.jar')
      implementation 'com.nispok:snackbar:2.11.+'
      implementation 'com.williammora:snackbar:1.4.0'
      implementation('com.crashlytics.sdk.android:crashlytics-ndk:1.1.1@aar') {
      transitive = true;
      }
      implementation 'me.drakeet.materialdialog:library:1.2.2'
      //implementation 'com.android.support:support-v4:23.0.1'
      implementation 'com.android.support:appcompat-v7:21.0.3'
      implementation 'com.android.support:design:24.2.1'
      implementation 'com.android.support:support-v4:24.2.1'
      implementation 'com.google.android.gms:play-services:8.4.0'
      implementation files('libs/apache-httpcomponents-httpclient.jar')
      implementation files('libs/apache-httpcomponents-httpcore.jar')
      implementation 'com.code-troopers.betterpickers:library:3.1.0'
      implementation 'com.nineoldandroids:library:2.4.0'
      implementation 'com.rengwuxian.materialedittext:library:2.1.4'
      implementation 'com.android.support:multidex:1.0.1'
      }

      crashlytics {
      enableNdk true
      androidNdkOut 'src/main/obj'
      androidNdkLibsOut 'src/main/libs'
      }


      Other error is: The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin. Perhaps you misspelled something?
      And i have seen this post to fix the error: error



      But using the solution that post say i have a new error:
      Cannot read packageName from C:Users.....appAndroidManifest.xml



      Any help, please? I'm becoming crazy







      android-studio






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 12 '18 at 12:10









      gisman

      406




      406





























          active

          oldest

          votes











          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%2f53261931%2fandroid-studio-3-2-error-project-imported-by-version-2-4%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f53261931%2fandroid-studio-3-2-error-project-imported-by-version-2-4%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