Got An Error While Building A Project In New Workspace
Solution 1:
Update the project.properties file of appcompat v7, which has:
target=android-19
totarget=android-21
Also update
google play services
library (byupdate
I mean update it inSDK Manager
and re-import etc)
Solution 2:
Right click project properties and change project Build Target To 5.0
change target=android-21 in your manifest
Solution 3:
compile project with Android 5.0 API leveL 21.
Solution 4:
I believe this is a bug.
I just verified that I can create a new Hello World app ( the standard default ) just fine with Version 20 of Android Support Library ( using SDK all the way down to 14 ). However, it fails with 21.0.3 with the exact same errors that you posted above.
Solution 5:
I got a similar error as someone new to installing Android tools and having mistakenly selected the 4.4W as well as 4.4.2 in the Android SDK Manager.
This results in having both API 20 and API 19 installed which means API 20 seems to be newer and will be picked up by default for new projects.
However, API 20 is Wearables Only.
You can see here in that 4.4W has ended up in the path.
Both the appcompat_v7 and HelloAndy project targets had this path problem.
I edited project.properties for both and changed target=android-20 to target=android-19 then did a Refresh on both projects (right-click the appcompat_v7 and other project). That updated the build paths to point to the correct Android SDK.
Post a Comment for "Got An Error While Building A Project In New Workspace"