2015-07-16 17:52:22 u010124617 阅读数 4573

今天在使用pod install的时候,出现了

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `项目名` to `Pods/Target Support Files/Pods-项目名/Pods-项目名.release.xcconfig` or include the `Pods/Target Support Files/Pods-项目名/Pods-项目名.release.xcconfig` in your build configuration.



解决方案如下:



把第3步箭头所指的地方改成如图所示的None即可。


我出现这问题是由之前的单个target改为了多个target,pod的目录结构发生了变化,此时旧的配置项仍然存在,影响了新的。

2016-07-09 16:50:15 Deft_MKJing 阅读数 2499

遇到一个小坑,记录一下,记得有事没事多去StackOver Flow看看,大神聚集地啊。。。。。。


pod install的时候竟然给我报这个错误


CocoaPods did not set the base configuration of your project because because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target BluePlaquesLondonFramework to Pods/Target Support Files/Pods/Pods.debug.xcconfig or include the Pods/Target Support Files/Pods/Pods.debug.xcconfig in your build configuration.


先来看看老外怎么回答的

I had the same problem, but in Xcode 6.1.1 - what fixed it for me was to change the configuration file setting to None for the two Pods-related targets, then run pod install again.

The configuration file setting is found by selecting the project (not the target) and then the Info tab.


OK,差不多是这个意思,按着我这个操作一遍就好了

1.进入到指定的info tab



2。然后把configuratuions下面的设置全部清为none



3.最后再pod install一次,OK了。就这么愉快的解决了

2016-03-30 12:07:35 fulinwsuafcie 阅读数 7849
针对异常java.lang.IllegalStateException onMeasure() did not set the measured dimension by calling setMeasuredDimension()的解决办法:
 
versionName = 2.5.2 versionCode = 20002100
java.lang.IllegalStateException onMeasure() did not set the measured dimension by calling setMeasuredDimension()
View.java 17945
java.lang.IllegalStateException: onMeasure() did not set the measured dimension by calling setMeasuredDimension()
at android.view.View.measure(View.java:17945)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
at android.view.View.measure(View.java:17915)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
at android.view.View.measure(View.java:17915)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
at com.android.camera.ui.MainActivityLayout.onMeasure(MainActivityLayout.java:152)
at android.view.View.measure(View.java:17915)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
at android.view.View.measure(View.java:17915)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1692)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:760)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
at android.view.View.measure(View.java:17915)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2810)
at android.view.View.measure(View.java:17915)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2472)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2164)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1303)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6666)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:800)
at android.view.Choreographer.doCallbacks(Choreographer.java:603)
at android.view.Choreographer.doFrame(Choreographer.java:572)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:786)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5699)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:984)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)


解决办法:
增加setMeasuredDimension调用
    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        if (mNonDecorWindowSizeChangedListener != null) {
            mNonDecorWindowSizeChangedListener.onNonDecorWindowSizeChanged(
                    MeasureSpec.getSize(widthMeasureSpec), MeasureSpec.getSize(heightMeasureSpec),
                    CameraCommonUtil.getDisplayRotation(getContext()));
        }
        setMeasuredDimension(widthMeasureSpec, heightMeasureSpec);
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }


关于此问题的根本原因以及View.Measure 函数的详细说明可以参考:http://blog.csdn.net/lilybaobei/article/details/8021868
2018-01-26 18:21:06 super_XYQ 阅读数 3675

正在调试代码的时候,浏览器连着报了好几个如下错误:

Lazy require of app.binding did not set the binding field

找了很久资料,结果发现一个有趣的现象,把正在debug的断点全部取消,这些错误就都消失了,之后再打断点也不会报此错。

 

没有更多推荐了,返回首页