2015-09-08 43 views
-1

我試圖發展與ADT捆綁於Eclipse的應用程序,但是當我嘗試運行我的應用程序它顯示了以下錯誤:應用程序不能與ADT捆綁在Eclipse中運行

[2015-09-08 21:27:53 - gpio] /home/tejvir/android-sdks/build-tools/23.0.1/aapt: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory

什麼應該做這個情況?

我試着在上面提到的其他問題的解決方案,但我在它遇到了以下錯誤:

sudo apt-get -qqy install libncurses5:i386 libstdc++6:i386 zlib1g:i386 
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. 

我也試圖在同一鏈路上提供的其他解決方案,甚至還沒有給我提供與解決方案。 以下是在試圖解決我所遇到的錯誤:

sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
lib32ncurses5 is already the newest version. 
libc6-i386 is already the newest version. 
libc6-i386 set to manually installed. 
Some packages could not be installed. This may mean that you have 
requested an impossible situation or if you are using the unstable 
distribution that some required packages have not yet been created 
or been moved out of Incoming. 
The following information may help to resolve the situation: 

    The following packages have unmet dependencies: 
    lib32gcc1 : Depends: gcc-4.9-base (= 4.9-20140406-0ubuntu1) but 4.9.1-0ubuntu1 is to be installed 
    lib32stdc++6 : Depends: gcc-4.8-base (= 4.8.2-19ubuntu1) but 4.8.4-2ubuntu1~14.04 is to be installed 
    E: Unable to correct problems, you have held broken packages. 

所以我有點困在這裏。

+0

可能重複[如何使Android的AAPT和亞洲開發銀行的工作在64位的Ubuntu IA32不-libs(適用於版本12,13和14)](http://stackoverflow.com/questions/19523502/how-to-make-androids-aapt-and-adb-work-on-64-bit-ubuntu- without-ia32-libs-work) –

+0

請檢查編輯內容。 –

+0

@AlexP。我仍然沒有答案...你有什麼建議... –

回答

0

我真的用一些專家的幫助解決了我的問題。

我已經解釋了上述問題,但真正的問題是我的gcc有一些問題需要運行哪個版本,並且我安裝的版本不適合我的發行版,即Ubuntu 14.04。除此之外,針對linux的adb已更新爲使用32位體系結構運行,但不支持64位體系結構。這就是我的adb爲我的系統中已存在的文件顯示錯誤的原因。

現在要刪除這些錯誤,我首先需要糾正我的gcc,然後按照我的方式安裝所有必需的32位體系結構庫。

所以現在我將解釋我是如何解決我的問題的。 注:這適用於我的電腦,我不知道它是否會在每臺PC上運行。但我認爲它幾乎可以在所有PC上運行。

讓我們走吧。

運行以下命令。

1. sudo apt-get install gcc-4.8base=4.8.2-19ubuntu1 

現在,如果您收到以下錯誤:

The following packages have unmet dependencies: 

    indicator-bluetooth : Depends: unity-control-center but it is not going to be installed or 

    gnome-control-center but it is not going to be installed or 

    ubuntu-system-settings but it is not going to be installed 

    libdee-1.0-4 : Depends: libicu52 (>= 52~m1-1~) but it is not going to be installed   

    system-image-dbus : Depends: system-image-common (= 2.2-0ubuntu1) but it is not going to be installed 

E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. 

下運行以下命令:

2. apt-cache policy libicu52 libdee-1.0-4 system-image-dbus system-image-common 

Now check if you are getting the following output: 

libicu52: 
    Installed: 52.1-3ubuntu0.3 
    Candidate: 52.1-3ubuntu0.3 
    Version table: 
     *** 52.1-3ubuntu0.3 0 
      500 security.ubuntu.com/ubuntu trusty-security/main amd64 Packages 
      100 /var/lib/dpkg/status 
     52.1-3 0 
      500 in.archive.ubuntu.com/ubuntu trusty/main amd64 Packages 
libdee-1.0-4: 
    Installed: 1.2.7+14.04.20140324-0ubuntu1 
    Candidate: 1.2.7+14.04.20140324-0ubuntu1 
    Version table: 
    *** 1.2.7+14.04.20140324-0ubuntu1 0 
     500 in.archive.ubuntu.com/ubuntu trusty/main amd64 Packages 
     100 /var/lib/dpkg/status 
system-image-dbus: 
    Installed: (none) 
    Candidate: 2.2-0ubuntu1 
    Version table: 
    2.2-0ubuntu1 0 

如果你跟我到這一點。那麼這意味着你真的搞砸了你的系統。從這時起,我們將首先嚐試修復我們的系統。

運行以下兩個命令:

3. sudo sed -i.bak 's/http:\/\/in./http:\/\//' /etc/apt/sources.list 

4. sudo apt-get update 

完成此操作。

執行這兩個命令

5. sudo apt-get install system-image-dbus 

    6. sudo apt-get install system-image-common 

現在,經過這個運行以下命令:

7. sudo apt-get install gcc-4.8-base=4.8.2-19ubuntu1 

如果這個文件被您的PC上安裝,沒有任何問題,那麼你基本上完成。你不需要繼續這個。但是,如果您的系統打印出以下錯誤

The following packages have unmet dependencies: 

    indicator-bluetooth : Depends: unity-control-center but it is not going to be installed or 

    gnome-control-center but it is not going to be installed or 

    ubuntu-system-settings but it is not going to be installed 

    libdee-1.0-4 : Depends: libicu52 (>= 52~m1-1~) but it is not going to be installed 

    E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. 

If you encounter this error then run the following command. 

    8. sudo apt-get install --reinstall libicu52 

    9. sudo apt-get install libdee-1.0-4 

    10. sudo apt-get dist-upgrade 

現在這最後一個命令可能需要一些時間,具體取決於您的Internet連接。

完成此操作後...按照以下指示說明完成操作。

  1. 開始軟件&更新
  2. 選擇標籤更新
  3. 選擇推薦的更新(可信任-更新)(在我的截圖它是生動的,更新的,但是這只是一個例子)

    enter image description here

    並點擊關閉

  4. 點擊刷新在此對話框

    enter image description here

  5. 現在升級你的系統(再次;)

    sudo apt-get dist-upgrade 
    
  6. 並安裝

    sudo apt-get install libstdc++6 
    

並在此之後,你是好去.. :)

謝謝

相關問題