failed to find target with hash string android-23

后端 未结 20 2926
梦如初夏
梦如初夏 2020-12-02 16:18

When trying to build OpenStreetMapView from git://github.com/osmdroid/osmdroid, I get this error:

failed to find target with hash string android-23: D:\\User         


        
相关标签:
20条回答
  • 2020-12-02 16:44

    Tools > Android > SDK Manager.

    0 讨论(0)
  • 2020-12-02 16:46

    Following these reccomended directions seemed to work:

    Hint: Open the SDK manager by running: /path/to/android/tools/android

    You will require: 1. "SDK Platform" for android-23 2. "Android SDK Platform-tools (latest) 3. "Android SDK Build-tools" (latest)

    0 讨论(0)
  • 2020-12-02 16:47

    The problem is caused because the code you are running was created in an older API level, And your present SDK Manager doesn't support running them. So do try the following; 1.Install the SDK Manager that support API level 23. Go to >SDK Manager, >Android SDK , then select API 23 and install. 2.second alternative is to update your build.grade app module to change compileSdkVersion,compile,and other numbers to your currently supported API level.

    Note:please ensure to check the API and Revision numbers and change them exactly. otherwise Your project won't synchronize

    0 讨论(0)
  • 2020-12-02 16:51

    In my case, clearing caché didn't work.

    On SDK Manager, be sure to check the box on "show package descriptions"; then you should also select the "Google APIs" for the version you are willing to install.

    Install it and then you should be ok

    0 讨论(0)
  • 2020-12-02 16:51

    Nothing worked for me. I changed SDK path to new SDK location and reinstalled SDK.Its working perfectly.

    0 讨论(0)
  • 2020-12-02 16:51

    This poblem is solved for me after Run as administrator the Andorid Studio

    0 讨论(0)
提交回复
热议问题