久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

導(dǎo)入項目給 Unable to resolve target 'android-7'

Importing project gave Unable to resolve target #39;android-7#39;(導(dǎo)入項目給 Unable to resolve target android-7)
本文介紹了導(dǎo)入項目給 Unable to resolve target 'android-7'的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

這個應(yīng)用程序是我大約一年前完成的(!),但從未在市場上推出過.我現(xiàn)在正在嘗試在 Eclipse 中打開它,以進(jìn)行一些小的修改并稍微處理代碼.所以我導(dǎo)入了它,然后發(fā)現(xiàn)這個奇怪的無法解析目標(biāo)"錯誤.它突出顯示了我所有src"文件中的每個類紅色.

This app I completed around a year ago (!) but never launched it on the market place. I am trying to open it up in eclipse now to make some small modifications and work on the code a little bit. So I imported it and then found this weird "unable to resolve target" error. It's highlighting every class red in all my 'src' files.

我看過一個類似的問題,它說要將該行添加到 default.properties 文件中.我的項目有一個 project.properties 文件,其中包含以下行:

I've looked at a similar question which said to add the line to default.properties file. My project has a project.properties file which has the line:

target=android-7

任何建議如何讓它工作?我總是可以開始一個新項目并復(fù)制所有的 src 文件,但這會很蹩腳且浪費時間.

Any advice how to get this to work? I could always start a new project and just copy all the src files but that would be pretty lame and time-wasting.

還有一條評論 - 我正在一臺新計算機上進(jìn)行開發(fā),但我認(rèn)為我沒有 API 級別 7.這可能是問題嗎?我已經(jīng)進(jìn)入了 Window --> Android SDK Manager,它顯示的最舊的可用 API 是 8 級.但 7 級意味著我可以針對更多設(shè)備,所以我想使用它.

One more comment - I'm developing on a new computer and I don't think I have the API level 7. Could that be the problem? I've gone into Window --> Android SDK Manager and the oldest available API it shows is level 8. But level 7 will mean I can target more devices I think so I'd like to go with that.

感謝您的幫助.

推薦答案

嗯,是的,這就是你的問題.您沒有下載 API 級別 7.您可以右鍵單擊該項目并轉(zhuǎn)到屬性-> android 并選擇另一個可用的 API.只要您不更改清單中的 min sdk 版本,您的目標(biāo)設(shè)備仍然與以前一樣多.

Well, yes that is your problem. You don't have the API level 7 downloaded. You can right click the project and go properties->android and select another available API. As long as you don't change the min sdk version in your manifest you are still targeting as many devices as before.

<uses-sdk android:minSdkVersion="7"/>

更新

您不必這樣做,但您可以在 SDK 存檔上獲取較舊的 API頁面

You don't have to do this, but you can get the older APIs on the SDK Archives page

我不知道下一個聲明是否有任何官方來源,但這是我在工作時發(fā)現(xiàn)的.如果有人能以更好的答案完成此任務(wù),我將不勝感激.

I don't know if there is any official source for the next statement but that is what I found while working. If anybody can complete this with a better answer I would appreciate it very much.

只要不使用任何與之前版本不兼容的代碼,您就可以使用較新的 SDK 版本編譯代碼.

You can compile the code with a newer SDK version as long as you don't use any code not compatible to the previous ones.

例子:

我希望我的應(yīng)用可用于 API 級別 7.但我只安裝了 API 級別 15.只要我在 Manifest 中保留 minSdkVersion="7" 并且不使用以前 API 中不可用的任何資源,該應(yīng)用程序就可以在我的目標(biāo)設(shè)備上正常運行.

I want my app to be available for API level 7. But i only have API level 15 installed. As long as I keep the minSdkVersion="7" in my Manifest and don't use any resource not available in the previous APIs the app will work just fine on my targeted devices.

這篇關(guān)于導(dǎo)入項目給 Unable to resolve target 'android-7'的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Why would you choose Android API over Google APIs in the SDK on Eclipse?(為什么在 Eclipse 的 SDK 中選擇 Android API 而不是 Google API?)
admob 6.2.1 nullpointer exception(admob 6.2.1 空指針異常)
My phone cannot be detected in eclipse to test run(eclipse 無法檢測到我的手機進(jìn)行試運行)
platform-toolsaapt.exe directory missing in android SDK(android SDK 中缺少 platform-toolsaapt.exe 目錄)
error importing com.google.android.gms.*;(導(dǎo)入 com.google.android.gms.* 時出錯;)
Problems with Android XML Editor and Eclipse...Hard to manually edit XML(Android XML 編輯器和 Eclipse 的問題...難以手動編輯 XML)
主站蜘蛛池模板: 国产一区 | 91影库 | 国产精品久久久久久久三级 | 毛片1| 精品一区二区三区在线视频 | 成人性视频免费网站 | 中文字幕久久精品 | 欧美日韩在线免费 | 欧美精品在线免费观看 | 精品美女视频在免费观看 | 欧美性成人 | 色男人天堂av | 亚洲色图50p| 国产久| 国产在线一区二区三区 | 日韩精品免费视频 | 成人激情视频免费观看 | 在线一区 | 日本精品一区二区 | 亚洲天堂999 | 在线观看涩涩视频 | 精品国产99| 精品国产精品三级精品av网址 | 国产极品车模吞精高潮呻吟 | 人人鲁人人莫人人爱精品 | 一区二区三区中文字幕 | 久久国产视频网 | 精品日韩在线 | 国产精品激情 | 欧美一区精品 | 国产精品美女久久久久久免费 | 欧美久久一区 | 亚洲精品免费视频 | 在线婷婷| 亚洲在线一区 | 欧美一区二区三区久久精品 | 国产成都精品91一区二区三 | 欧美日韩亚洲一区 | 91麻豆精品国产91久久久久久久久 | 成人在线精品视频 | 亚洲一区二区三区视频 |