新建object_detection項目

目錄

1、直接在一個老項目的基礎上覆制一個新項目

2、在app的build.gradle文件中修改 applicationId,如下圖

3、修改包名和 applicationId相同

4、clean project


之前寫過一篇文章:object_detection項目

通過這種方式可以新建一個object_detection項目,但是太過於麻煩,創建一個新項目需要半個多小時。後來換了一種方法,幾分鐘就搞定了。

1、直接在一個老項目的基礎上覆制一個新項目

如題

2、在app的build.gradle文件中修改 applicationId,如下圖

3、修改包名和 applicationId相同

4、clean project

運行新項目,會報如下錯誤,apk也無法正常安裝。clean project 就可以了。

Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK: /data/app/vmdl970866545.tmp/1_slice__ package com.sutpc.odtest11 inconsistent with com.sutpc.odtest10.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

參考文章:

AndroidStudio 移動項目到新文件夾,Installation failed with message Failed to finalize session 問題的解決

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章