在ViewGroup(FrameLayout)上調用addView()方法後,我得到一個異常。「resultIndex爲-1,多邊形必須無效!」 adter addView()
public final View createView(Context context, Property property, ViewGroup parent) {
mView = LayoutInflater.from(context).inflate(getLayout(), null);
mContext = context;
mProperty = property;
processBaseViews(mView, property);
processViews(mView, property);
parent.addView(mView);
return mView;
}
例外:
10-17 18:39:40.060: E/OpenGLRenderer(511): resultIndex is -1, the polygon must be invalid!
10-17 18:39:40.061: A/libc(511): Fatal signal 7 (SIGBUS), code 1, fault addr 0x136 in tid 726 (hwuiTask1)
此代碼的工作通常在Android棒棒糖(SDK < = 22),但與在Android棉花糖(SDK 23)錯誤關閉。我如何解決這個問題?
你有沒有找到一個解決這個?我剛剛開始遇到同樣的問題。 – Ben