2013-02-01 13 views
15

जब आप किसी प्रोजेक्ट बनाते हैं, यह इस पुस्तकालय डिफ़ॉल्ट रूप से जोड़ा साथ आता है:क्या मैं एंड्रॉइड-सपोर्ट-v4.jar लाइब्रेरी को हटा सकता हूं?

android-समर्थन-v4.jar

मैं इसे हटा सकते हैं? अगर मैं पुस्तकालय को हटा देता हूं तो क्या होगा? क्या ऐप कुछ फोन में काम करना बंद कर सकता है?

उत्तर

10

क्या मैं इसे हटा सकता हूं?

आप कोशिश कर सकते हैं।

यदि मैं उस पुस्तकालय को हटा देता हूं तो क्या होता है?

टुकड़े backport

आप इसे द्वारा आपूर्ति की कुछ भी, का उपयोग करने के लिए सक्षम नहीं होंगे, जैसे ViewPager, आदि

एप्लिकेशन कुछ फोन में काम करना बंद कर सकते हैं?

आपको पहले बिल्ड त्रुटियां मिलेंगी।

4

यदि आप अपने मौजूदा SDK लक्ष्य के लिए उपलब्ध नहीं हैं तो आप सुरक्षित रूप से इसे हटा सकते हैं।

1

यह एक समर्थन पुस्तकालय है। आप इसके बारे में यहाँ पढ़ सकते हैं:

आप उसे सुरक्षित निकाल सकें यदि आप इस API का उपयोग नहीं करते।

4

यदि आप एक्लिप्स का उपयोग कर रहे हैं और एंड्रॉइड-सपोर्ट-वी 4 जार को हटाने के बाद आपकी परियोजना को लाल विस्मयादिबोधक चिह्न के साथ चिह्नित किया गया है, तो बंद करें और ग्रहण को पुनरारंभ करें और इसे स्वयं को सीधा करना चाहिए। (या आप प्रोजेक्ट को बंद करने और फिर से खोलने का प्रयास कर सकते हैं।)

0

मैंने अभी ऐसा किया है। इसलिए मैं इसका मतलब है कि उल्लेख किया संसाधनों अब और अपनी परियोजनाओं के लिए उपलब्ध नहीं हैं की तरह

...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. 
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. 
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. 
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. 
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. 
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. 

सभी परियोजनाओं में कई त्रुटियाँ मिलता है।

फिर मैंने v7 appcompat जोड़ने के लिए आगे बढ़े, और मुझे मेरी त्रुटियों से छुटकारा नहीं मिल सका। इसलिए मैं इसे नष्ट कर दिया, और गलती से डिस्क से प्रोजेक्ट को हटा के साथ-साथ, तो यह के अवशेष (मुझे लगता है) स्थापित है, और यह अच्छी तरह से खत्म नहीं हुई या तो:

[2014-12-07 06:25:16 - android-support-v7-gridlayout] Unable to resolve target 'android-7' 
[2014-12-07 06:25:16 - android-support-v7-mediarouter] Unable to resolve target 'android-17' 
[2014-12-07 06:25:16 - android-support-v7-palette] Unable to resolve target 'android-7' 
[2014-12-07 06:25:17 - android-support-v7-gridlayout] Unable to resolve target 'android-7' 
[2014-12-07 06:25:17 - android-support-v7-palette] Unable to resolve target 'android-7' 
[2014-12-07 06:25:22 - android-support-v7-mediarouter] Unable to resolve target 'android-17' 


...\sdk\extras\android\support\v7\mediarouter\res\values\styles.xml:18: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton'. 
...\sdk\extras\android\support\v7\mediarouter\res\values\styles.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.ActionButton'. 
...\sdk\extras\android\support\v7\mediarouter\res\values\styles.xml:18: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton'. 
...\sdk\extras\android\support\v7\mediarouter\res\values\styles.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.ActionButton'. 
[2014-12-07 06:25:26 - android-support-v7-mediarouter] 

तो, हाँ, ऐसा नहीं करते आईटी!

संबंधित मुद्दे