Failed to build project with Android studio

前端 未结 6 1049
醉酒成梦
醉酒成梦 2021-02-02 05:15

Can anyone tell me why I\'m getting this error with AndroidStudio?

Execution failed for task \':sampleapp:preBuild\'.
> Build Tools Revision 19.0.0+ is requir         


        
6条回答
  •  难免孤独
    2021-02-02 05:40

    This seemed to work for me. I had to update the Default settings then restart the IDE:

    1. File->Other Settings->Default Project Structure
    2. Under Project Settings: Project, set Project SDK as Android SDK.
    3. Click Edit button
    4. For Android SDK, set Build target to Android 4.4.2
    5. Click Ok.
    6. Restart IDE
    7. Then rebuild. Seemed to work after that..

    This is assuming you've already installed Android-19 and still having difficulties.

提交回复
热议问题