did not have a source.properties file

找到项目里面搜索local.properties文件
修改路径如下:

sdk.dir=D\:\\sdk
ndk.dir=D\:\\sdk\\ndk-bundle\\22.0.7026061

原因是因为找不到ndk文件夹了,有可能是因为下载了多个版本导致找不到,像我这样
image.png

如果还不行,那么在
After specifying ndk version in build.gradle file it is working

android {
        ndkVersion '21.3.6528147'
    }

你可能感兴趣的:(did not have a source.properties file)