添加头文件的报错failed to emit precompiled header 的解决办法

Posted Caersi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了添加头文件的报错failed to emit precompiled header 的解决办法相关的知识,希望对你有一定的参考价值。

在buildsetting中的以下两个路径中添加对应的设置,重现编译即可解决,stackoverflow地址:点击

Solution:
1 I added $(inherited) non-recursive to Search Path -> Header Search Paths
2 Then added ${PODS_ROOT} recursive to Search Path -> User Header Search Paths
Both the above in my projects‘ target build settings.

 

以上是关于添加头文件的报错failed to emit precompiled header 的解决办法的主要内容,如果未能解决你的问题,请参考以下文章

Android的java的报错提示:java.lang.RuntimeException: Fail to connect to camera service

Android的报错提示:Failed to resolve: io.reactivex.rxjava2:rxandroid:2.1.0

Android的报错提示:Failed to resolve: com.github.bumptech.glide:glide:4.9.0

Android的报错提示:Failed to resolve: io.reactivex.rxjava2:rxjava:2.2.6

Android的报错提示:Failed to resolve: com.android.support.test.espresso:espresso-core:3.0.2

Android的报错提示:Failed to resolve: com.android.support:appcompat-v7:28.0.0