プロジェクトを作成すると、それがデフォルトで追加このライブラリが付属しています:android-support-v4.jarライブラリを削除できますか?
アンドロイド・サポート・v4.jar
私はそれを削除できますか?ライブラリを削除するとどうなりますか?アプリが一部の携帯電話で機能しなくなることはありますか?
プロジェクトを作成すると、それがデフォルトで追加このライブラリが付属しています:android-support-v4.jarライブラリを削除できますか?
アンドロイド・サポート・v4.jar
私はそれを削除できますか?ライブラリを削除するとどうなりますか?アプリが一部の携帯電話で機能しなくなることはありますか?
削除できますか?
試すことができます。
ライブラリを削除するとどうなりますか?
アプリは一部の携帯電話で動作を停止することができますあなたは
など、
ViewPager
、フラグメントはバックポートなど、それによって提供されるものを使用することはできないのだろうか?
最初にビルドエラーが発生します。
現在のSDKターゲットで利用できないAPIを使用しない場合は、安全に削除できます。
サポートライブラリです。あなたはここでそれについて読むことができます。
をあなたはこのAPIを使用しない場合は、安全に削除することができます。
Eclipseを使用していて、android-support-v4 jarを削除した後にプロジェクトに赤い感嘆符が表示されている場合は、Eclipseを終了して再起動してください。 (あるいは、プロジェクトを閉じて再オープンするだけでもよいかもしれません)。
私はそれをやりました。だから、すべてのプロジェクトで複数のエラーが発生する。
...\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]
そうそう、しないでくださいそれ!