转载自:https://blog.csdn.net/qq_23089525/article/details/50687492
错误如下:
Observed package id ‘build-tools;18.0.1’ in inconsistent location ‘E:\SDK_JDK\android-sdk\build-tools\android-4.3’ (Expected ‘E:\SDK_JDK\android-sdk\build-tools\18.0.1’)
Observed package id ‘build-tools;19.0.0’ in inconsistent location ‘E:\SDK_JDK\android-sdk\build-tools\android-4.4’ (Expected ‘E:\SDK_JDK\android-sdk\build-tools\19.0.0’)
Observed package id ‘build-tools;20.0.0’ in inconsistent location ‘E:\SDK_JDK\android-sdk\build-tools\android-4.4W’ (Expected ‘E:\SDK_JDK\android-sdk\build-tools\20.0.0’)
Observed package id ‘build-tools;22.0.1’ in inconsistent location ‘E:\SDK_JDK\android-sdk\build-tools\build-tools-22.0.1’ (Expected ‘E:\SDK_JDK\android-sdk\build-tools\22.0.1’)
Observed package id ‘system-images;android-22;google_apis;x86’ in inconsistent location ‘E:\SDK_JDK\android-sdk\system-images\addon-google_apis-google-22\x86’ (Expected ‘E:\SDK_JDK\android-sdk\system-images\android-22\google_apis\x86’)
:app:clean
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:FlycoTabLayout_Lib:preBuild UP-TO-DATE
:FlycoTabLayout_Lib:preReleaseBuild UP-TO-DATE
:FlycoTabLayout_Lib:compileReleaseNdk UP-TO-DATE
解决办法:SDK目录下,把下边的改成上边19.1.0样式的
正确目录如下: