Android studio fails to find cmakeAndroid Studio - How to Change Android SDK PathCode formatting shortcut in Android StudioAndroid studio, gradle and NDKWhat should be in my .gitignore for an Android Studio project?What is Gradle in Android Studio?Rename package in Android StudioAndroid studio - Failed to find target android-18Where do I place the 'assets' folder in Android Studio?Android Studio SDK locationAndroid Studio: “Please select Android SDK”Finding Android SDK on Mac and adding to PATH

How did Captain Marvel know where to find these characters?

How likely are Coriolis-effect-based quirks to develop in starship crew members?

My perfect evil overlord plan... or is it?

What is the radius of the circle in this problem?

Why is it wrong to *implement* myself a known, published, widely believed to be secure crypto algorithm?

Is there any evidence to support the claim that the United States was "suckered into WW1" by Zionists, made by Benjamin Freedman in his 1961 speech

Pre-1993 comic in which Wolverine's claws were turned to rubber?

Does a surprised creature obey the 1st level spell Command?

Was Mohammed the most popular first name for boys born in Berlin in 2018?

How is Arya still alive?

Integral with DiracDelta. Can Mathematica be made to solve this?

Two (probably) equal real numbers which are not proved to be equal?

Is it safe to keep the GPU on 100% utilization for a very long time?

Is there an idiom that means "revealing a secret unintentionally"?

And now you see it II (the B side)

Using SUBSTRING and RTRIM Together

Row vectors and column vectors (Mathematica vs Matlab)

Passport stamps art, can it be done?

What is the status of the three crises in the history of mathematics?

How do I minimise waste on a flight?

Are there vaccine ingredients which may not be disclosed ("hidden", "trade secret", or similar)?

Do Rabbis admit emotional involvement in their rulings?

Why did they wait for Quill to arrive?

What is a good way to allow only one non null field in an object



Android studio fails to find cmake


Android Studio - How to Change Android SDK PathCode formatting shortcut in Android StudioAndroid studio, gradle and NDKWhat should be in my .gitignore for an Android Studio project?What is Gradle in Android Studio?Rename package in Android StudioAndroid studio - Failed to find target android-18Where do I place the 'assets' folder in Android Studio?Android Studio SDK locationAndroid Studio: “Please select Android SDK”Finding Android SDK on Mac and adding to PATH






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Due to disk space limits I moved my android SDK to a new drive/location.
I can no longer clean the project as android studio fails to locate cmake because it's looking in the old directory.



I updated the sdk path and most things work, I can even build the project and external ndk files.



But build->clean Project in android studio 3.3.2 can't find cmake when trying to clean because it's looking in the old sdk directory for cmake.



I've completely reinstalled the sdk and android studio from scratch, but it still looks in the old directory on the wrong drive when trying to execute:



task ':app:externalNativeBuildCleanDebug'


Where is this compiler location setting or script or path? and how do I change it to look in the right directory?










share|improve this question
























  • stackoverflow.com/questions/16581752/…

    – MD Naseem Ashraf
    Mar 23 at 9:05











  • Thanks but the SDK path settings in android studio are already set correctly. Whatever the clean command is using, it is not using these paths from android studio's settings. They are all pointing to the correct location. They all point to drive E and the clean command always attempts to start cmake from drive c: -- It does however build the project correctly outside of the cleaning option. That is.. it can find cmake for regular compiling. Just not for clean or the clean fired off before rebuild.

    – svero
    Mar 23 at 10:28


















0















Due to disk space limits I moved my android SDK to a new drive/location.
I can no longer clean the project as android studio fails to locate cmake because it's looking in the old directory.



I updated the sdk path and most things work, I can even build the project and external ndk files.



But build->clean Project in android studio 3.3.2 can't find cmake when trying to clean because it's looking in the old sdk directory for cmake.



I've completely reinstalled the sdk and android studio from scratch, but it still looks in the old directory on the wrong drive when trying to execute:



task ':app:externalNativeBuildCleanDebug'


Where is this compiler location setting or script or path? and how do I change it to look in the right directory?










share|improve this question
























  • stackoverflow.com/questions/16581752/…

    – MD Naseem Ashraf
    Mar 23 at 9:05











  • Thanks but the SDK path settings in android studio are already set correctly. Whatever the clean command is using, it is not using these paths from android studio's settings. They are all pointing to the correct location. They all point to drive E and the clean command always attempts to start cmake from drive c: -- It does however build the project correctly outside of the cleaning option. That is.. it can find cmake for regular compiling. Just not for clean or the clean fired off before rebuild.

    – svero
    Mar 23 at 10:28














0












0








0








Due to disk space limits I moved my android SDK to a new drive/location.
I can no longer clean the project as android studio fails to locate cmake because it's looking in the old directory.



I updated the sdk path and most things work, I can even build the project and external ndk files.



But build->clean Project in android studio 3.3.2 can't find cmake when trying to clean because it's looking in the old sdk directory for cmake.



I've completely reinstalled the sdk and android studio from scratch, but it still looks in the old directory on the wrong drive when trying to execute:



task ':app:externalNativeBuildCleanDebug'


Where is this compiler location setting or script or path? and how do I change it to look in the right directory?










share|improve this question
















Due to disk space limits I moved my android SDK to a new drive/location.
I can no longer clean the project as android studio fails to locate cmake because it's looking in the old directory.



I updated the sdk path and most things work, I can even build the project and external ndk files.



But build->clean Project in android studio 3.3.2 can't find cmake when trying to clean because it's looking in the old sdk directory for cmake.



I've completely reinstalled the sdk and android studio from scratch, but it still looks in the old directory on the wrong drive when trying to execute:



task ':app:externalNativeBuildCleanDebug'


Where is this compiler location setting or script or path? and how do I change it to look in the right directory?







android-studio






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 23 at 11:41









Rotemya

1,55231724




1,55231724










asked Mar 23 at 8:49









sverosvero

1




1












  • stackoverflow.com/questions/16581752/…

    – MD Naseem Ashraf
    Mar 23 at 9:05











  • Thanks but the SDK path settings in android studio are already set correctly. Whatever the clean command is using, it is not using these paths from android studio's settings. They are all pointing to the correct location. They all point to drive E and the clean command always attempts to start cmake from drive c: -- It does however build the project correctly outside of the cleaning option. That is.. it can find cmake for regular compiling. Just not for clean or the clean fired off before rebuild.

    – svero
    Mar 23 at 10:28


















  • stackoverflow.com/questions/16581752/…

    – MD Naseem Ashraf
    Mar 23 at 9:05











  • Thanks but the SDK path settings in android studio are already set correctly. Whatever the clean command is using, it is not using these paths from android studio's settings. They are all pointing to the correct location. They all point to drive E and the clean command always attempts to start cmake from drive c: -- It does however build the project correctly outside of the cleaning option. That is.. it can find cmake for regular compiling. Just not for clean or the clean fired off before rebuild.

    – svero
    Mar 23 at 10:28

















stackoverflow.com/questions/16581752/…

– MD Naseem Ashraf
Mar 23 at 9:05





stackoverflow.com/questions/16581752/…

– MD Naseem Ashraf
Mar 23 at 9:05













Thanks but the SDK path settings in android studio are already set correctly. Whatever the clean command is using, it is not using these paths from android studio's settings. They are all pointing to the correct location. They all point to drive E and the clean command always attempts to start cmake from drive c: -- It does however build the project correctly outside of the cleaning option. That is.. it can find cmake for regular compiling. Just not for clean or the clean fired off before rebuild.

– svero
Mar 23 at 10:28






Thanks but the SDK path settings in android studio are already set correctly. Whatever the clean command is using, it is not using these paths from android studio's settings. They are all pointing to the correct location. They all point to drive E and the clean command always attempts to start cmake from drive c: -- It does however build the project correctly outside of the cleaning option. That is.. it can find cmake for regular compiling. Just not for clean or the clean fired off before rebuild.

– svero
Mar 23 at 10:28













1 Answer
1






active

oldest

votes


















0














I used a grep tool to look for the old directory. They were mostly contained in the .externalNativeBuild directory -- I tried deleting the directory and letting android studio rebuild it, and that managed to clear whatever temp files were holding onto the old sdk directory. It seems to work now.






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%2f55312099%2fandroid-studio-fails-to-find-cmake%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














    I used a grep tool to look for the old directory. They were mostly contained in the .externalNativeBuild directory -- I tried deleting the directory and letting android studio rebuild it, and that managed to clear whatever temp files were holding onto the old sdk directory. It seems to work now.






    share|improve this answer



























      0














      I used a grep tool to look for the old directory. They were mostly contained in the .externalNativeBuild directory -- I tried deleting the directory and letting android studio rebuild it, and that managed to clear whatever temp files were holding onto the old sdk directory. It seems to work now.






      share|improve this answer

























        0












        0








        0







        I used a grep tool to look for the old directory. They were mostly contained in the .externalNativeBuild directory -- I tried deleting the directory and letting android studio rebuild it, and that managed to clear whatever temp files were holding onto the old sdk directory. It seems to work now.






        share|improve this answer













        I used a grep tool to look for the old directory. They were mostly contained in the .externalNativeBuild directory -- I tried deleting the directory and letting android studio rebuild it, and that managed to clear whatever temp files were holding onto the old sdk directory. It seems to work now.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 23 at 12:03









        sverosvero

        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%2f55312099%2fandroid-studio-fails-to-find-cmake%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

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript