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

            Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

            Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

            2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived