After using android studio 3.1.2 it showing error=2, No such file or directory

前端 未结 5 1726
野的像风
野的像风 2020-12-31 18:50

After installing Ubuntu 18 in new desktop with i7 and 24gb ram . We try to move our android studio project to new pc in zip format and our project

5条回答
  •  青春惊慌失措
    2020-12-31 19:40

    Mips is not supported anymore in Android NDK r17. I had the same problem and in my case it was caused by a dependency which contains a prebuilt mips native lib. I was able to fix the build error by excluding the mips files as follows in the main build.gradle:

    android {
        packagingOptions {
            exclude 'lib/mips64/NAME_OF_THE_LIB.so'
            exclude 'lib/mips/NAME_OF_THE_LIB.so'
        }
    }
    

    where NAME_OF_THE_LIB must be replaced by the actual name of the so file. You can find it by unzipping the apk of a previous successful build, if you have one.

提交回复
热议问题