【Android】移動項目位置

來源:互聯網
上載者:User

標籤:清理   方法   一個   apk   project   .com   重新編譯   http   define   

一、前言

有時候,我們建立一個項目後,因為一些原因想要重新移動項目到別的檔案夾。然而,移動到新的檔案夾後,卻發現之前好好的項目運行不了。點擊運行後,彈出如下對話方塊。 

Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK: Split lib_dependencies_apk was defined multiple times.It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.WARNING: Uninstalling will remove the application data!Do you want to uninstall the existing application?

大意就是要說lib_dependencies_apk這個東西定義了多次,要我們點擊ok卸載重裝,但是點擊OK,還是運行不了。 

二、解決方案1.清理項目之前編譯好的.class檔案,重新編譯檔案

點擊build->clean project ,然後再點擊 rebuild project。

重新點擊運行,發現安裝的了卻運行不了。

2.刪除ide自動產生的一些檔案

 
刪除.gradle , .idea , build 三個檔案夾,注意不要刪錯了哦。 
重新點擊運行。

這時候就可以運行了。

【Android】移動項目位置

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.