Could not find method ImplementationSdkVersion() for arguments [26] on object of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension The Next CEO of Stack Overflow'Must Override a Superclass Method' Errors after importing a project into EclipseAndroid SDK installation doesn't find JDKWhat does “Could not find or load main class” mean?Duplicate files during packaging of APK app-debug-unaligned.apkBuild error trying to get fb sdk workingHow to display Map on emulatorKotlin fails to compile a libraryAndroid Studio 3.2.1 - New project fails to rundebug-apk work fine but sign apk release crash on main acitvityCould not find class 'dalvik.system…'

Strange use of "whether ... than ..." in official text

Why am I getting "Static method cannot be referenced from a non static context: String String.valueOf(Object)"?

How did Beeri the Hittite come up with naming his daughter Yehudit?

Computationally populating tables with probability data

Aggressive Under-Indexing and no data for missing index

What CSS properties can the br tag have?

Could a dragon use its wings to swim?

Airplane gently rocking its wings during whole flight

Where do students learn to solve polynomial equations these days?

Can this note be analyzed as a non-chord tone?

Are the names of these months realistic?

Inexact numbers as keys in Association?

Is it ever safe to open a suspicious HTML file (e.g. email attachment)?

Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico

Is it ok to trim down a tube patch?

What is the process for purifying your home if you believe it may have been previously used for pagan worship?

Is it okay to majorly distort historical facts while writing a fiction story?

How to avoid supervisors with prejudiced views?

How to Implement Deterministic Encryption Safely in .NET

Film where the government was corrupt with aliens, people sent to kill aliens are given rigged visors not showing the right aliens

Is there a way to save my career from absolute disaster?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

Decide between Polyglossia and Babel for LuaLaTeX in 2019

What was Carter Burke's job for "the company" in Aliens?



Could not find method ImplementationSdkVersion() for arguments [26] on object of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension



The Next CEO of Stack Overflow'Must Override a Superclass Method' Errors after importing a project into EclipseAndroid SDK installation doesn't find JDKWhat does “Could not find or load main class” mean?Duplicate files during packaging of APK app-debug-unaligned.apkBuild error trying to get fb sdk workingHow to display Map on emulatorKotlin fails to compile a libraryAndroid Studio 3.2.1 - New project fails to rundebug-apk work fine but sign apk release crash on main acitvityCould not find class 'dalvik.system…'










0















I would like someone to help me with this Android Studio error. I have bought an Android Application in internet, and I have also the android studio project files.
The thing is that this application has been made with an older version of Android studio I think, probably like 1 year and a half ago.
I get this error Could not find method ImplementationSdkVersion() for arguments [26] on object of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension. after replacing all compile with implementation because those showed warnings and when I tried to get an APK from my android studio project that APK crashed on my Samsung.
This is the gradle module app code:
apply plugin: 'com.android.application'



android 
useLibrary 'org.apache.http.legacy'
ImplementationSdkVersion 26
buildToolsVersion '28.0.3'
defaultConfig
applicationId "codecanyon.carondeal"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'


packagingOptions
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'

productFlavors


repositories
mavenCentral() // jcenter() works as well because it pulls from Maven Central

dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2',
exclude group: 'com.android.support', module: 'support-annotations'
)
Implementation('org.apache.httpcomponents:httpmime:4.3')
exclude module: "httpclient"

//implementation 'com.android.support:cardview-v7:26.0.0'
implementation 'com.android.support:appcompat-v7:26.0.0-alpha1'
implementation 'com.android.support:design:26.0.0-alpha1'
implementation 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
implementation 'com.squareup.okhttp3:okhttp:3.8.1'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.github.clans:fab:1.6.4'
implementation 'com.android.support:cardview-v7:26.0.0-alpha1'
implementation 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
implementation 'com.google.firebase:firebase-messaging:11.0.4'
implementation 'com.android.support:support-v4:26.0.0-alpha1'
implementation 'com.daimajia.swipelayout:library:1.2.0@aar'
testimplementation 'junit:junit:4.12'


apply plugin: 'com.google.gms.google-services'









share|improve this question
























  • You have two capitalization issues: it's testImplementation, NOT testimplementation (junit), and implementation, NOT implementation (httpcomponents)

    – Zoe
    Mar 8 at 17:30











  • that doesnt matter I think. the error still consists after correcting these and rebuilding

    – Franci
    Mar 8 at 17:34















0















I would like someone to help me with this Android Studio error. I have bought an Android Application in internet, and I have also the android studio project files.
The thing is that this application has been made with an older version of Android studio I think, probably like 1 year and a half ago.
I get this error Could not find method ImplementationSdkVersion() for arguments [26] on object of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension. after replacing all compile with implementation because those showed warnings and when I tried to get an APK from my android studio project that APK crashed on my Samsung.
This is the gradle module app code:
apply plugin: 'com.android.application'



android 
useLibrary 'org.apache.http.legacy'
ImplementationSdkVersion 26
buildToolsVersion '28.0.3'
defaultConfig
applicationId "codecanyon.carondeal"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'


packagingOptions
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'

productFlavors


repositories
mavenCentral() // jcenter() works as well because it pulls from Maven Central

dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2',
exclude group: 'com.android.support', module: 'support-annotations'
)
Implementation('org.apache.httpcomponents:httpmime:4.3')
exclude module: "httpclient"

//implementation 'com.android.support:cardview-v7:26.0.0'
implementation 'com.android.support:appcompat-v7:26.0.0-alpha1'
implementation 'com.android.support:design:26.0.0-alpha1'
implementation 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
implementation 'com.squareup.okhttp3:okhttp:3.8.1'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.github.clans:fab:1.6.4'
implementation 'com.android.support:cardview-v7:26.0.0-alpha1'
implementation 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
implementation 'com.google.firebase:firebase-messaging:11.0.4'
implementation 'com.android.support:support-v4:26.0.0-alpha1'
implementation 'com.daimajia.swipelayout:library:1.2.0@aar'
testimplementation 'junit:junit:4.12'


apply plugin: 'com.google.gms.google-services'









share|improve this question
























  • You have two capitalization issues: it's testImplementation, NOT testimplementation (junit), and implementation, NOT implementation (httpcomponents)

    – Zoe
    Mar 8 at 17:30











  • that doesnt matter I think. the error still consists after correcting these and rebuilding

    – Franci
    Mar 8 at 17:34













0












0








0








I would like someone to help me with this Android Studio error. I have bought an Android Application in internet, and I have also the android studio project files.
The thing is that this application has been made with an older version of Android studio I think, probably like 1 year and a half ago.
I get this error Could not find method ImplementationSdkVersion() for arguments [26] on object of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension. after replacing all compile with implementation because those showed warnings and when I tried to get an APK from my android studio project that APK crashed on my Samsung.
This is the gradle module app code:
apply plugin: 'com.android.application'



android 
useLibrary 'org.apache.http.legacy'
ImplementationSdkVersion 26
buildToolsVersion '28.0.3'
defaultConfig
applicationId "codecanyon.carondeal"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'


packagingOptions
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'

productFlavors


repositories
mavenCentral() // jcenter() works as well because it pulls from Maven Central

dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2',
exclude group: 'com.android.support', module: 'support-annotations'
)
Implementation('org.apache.httpcomponents:httpmime:4.3')
exclude module: "httpclient"

//implementation 'com.android.support:cardview-v7:26.0.0'
implementation 'com.android.support:appcompat-v7:26.0.0-alpha1'
implementation 'com.android.support:design:26.0.0-alpha1'
implementation 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
implementation 'com.squareup.okhttp3:okhttp:3.8.1'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.github.clans:fab:1.6.4'
implementation 'com.android.support:cardview-v7:26.0.0-alpha1'
implementation 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
implementation 'com.google.firebase:firebase-messaging:11.0.4'
implementation 'com.android.support:support-v4:26.0.0-alpha1'
implementation 'com.daimajia.swipelayout:library:1.2.0@aar'
testimplementation 'junit:junit:4.12'


apply plugin: 'com.google.gms.google-services'









share|improve this question
















I would like someone to help me with this Android Studio error. I have bought an Android Application in internet, and I have also the android studio project files.
The thing is that this application has been made with an older version of Android studio I think, probably like 1 year and a half ago.
I get this error Could not find method ImplementationSdkVersion() for arguments [26] on object of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension. after replacing all compile with implementation because those showed warnings and when I tried to get an APK from my android studio project that APK crashed on my Samsung.
This is the gradle module app code:
apply plugin: 'com.android.application'



android 
useLibrary 'org.apache.http.legacy'
ImplementationSdkVersion 26
buildToolsVersion '28.0.3'
defaultConfig
applicationId "codecanyon.carondeal"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'


packagingOptions
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'

productFlavors


repositories
mavenCentral() // jcenter() works as well because it pulls from Maven Central

dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2',
exclude group: 'com.android.support', module: 'support-annotations'
)
Implementation('org.apache.httpcomponents:httpmime:4.3')
exclude module: "httpclient"

//implementation 'com.android.support:cardview-v7:26.0.0'
implementation 'com.android.support:appcompat-v7:26.0.0-alpha1'
implementation 'com.android.support:design:26.0.0-alpha1'
implementation 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
implementation 'com.squareup.okhttp3:okhttp:3.8.1'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.github.clans:fab:1.6.4'
implementation 'com.android.support:cardview-v7:26.0.0-alpha1'
implementation 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
implementation 'com.google.firebase:firebase-messaging:11.0.4'
implementation 'com.android.support:support-v4:26.0.0-alpha1'
implementation 'com.daimajia.swipelayout:library:1.2.0@aar'
testimplementation 'junit:junit:4.12'


apply plugin: 'com.google.gms.google-services'






java android gradle






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 17:29









Zoe

13.1k85085




13.1k85085










asked Mar 8 at 17:27









FranciFranci

1




1












  • You have two capitalization issues: it's testImplementation, NOT testimplementation (junit), and implementation, NOT implementation (httpcomponents)

    – Zoe
    Mar 8 at 17:30











  • that doesnt matter I think. the error still consists after correcting these and rebuilding

    – Franci
    Mar 8 at 17:34

















  • You have two capitalization issues: it's testImplementation, NOT testimplementation (junit), and implementation, NOT implementation (httpcomponents)

    – Zoe
    Mar 8 at 17:30











  • that doesnt matter I think. the error still consists after correcting these and rebuilding

    – Franci
    Mar 8 at 17:34
















You have two capitalization issues: it's testImplementation, NOT testimplementation (junit), and implementation, NOT implementation (httpcomponents)

– Zoe
Mar 8 at 17:30





You have two capitalization issues: it's testImplementation, NOT testimplementation (junit), and implementation, NOT implementation (httpcomponents)

– Zoe
Mar 8 at 17:30













that doesnt matter I think. the error still consists after correcting these and rebuilding

– Franci
Mar 8 at 17:34





that doesnt matter I think. the error still consists after correcting these and rebuilding

– Franci
Mar 8 at 17:34












1 Answer
1






active

oldest

votes


















0














Oh I finally found the solution. I just changed the



ImplementationSdkVersion 26


to



compileSdkVersion 26


and it worked. :) ^_^






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%2f55068154%2fcould-not-find-method-implementationsdkversion-for-arguments-26-on-object-of%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














    Oh I finally found the solution. I just changed the



    ImplementationSdkVersion 26


    to



    compileSdkVersion 26


    and it worked. :) ^_^






    share|improve this answer



























      0














      Oh I finally found the solution. I just changed the



      ImplementationSdkVersion 26


      to



      compileSdkVersion 26


      and it worked. :) ^_^






      share|improve this answer

























        0












        0








        0







        Oh I finally found the solution. I just changed the



        ImplementationSdkVersion 26


        to



        compileSdkVersion 26


        and it worked. :) ^_^






        share|improve this answer













        Oh I finally found the solution. I just changed the



        ImplementationSdkVersion 26


        to



        compileSdkVersion 26


        and it worked. :) ^_^







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 8 at 17:48









        FranciFranci

        1




        1





























            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%2f55068154%2fcould-not-find-method-implementationsdkversion-for-arguments-26-on-object-of%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

            Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

            Zrinski family tree See also Navigation menu

            Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?