MessageDialogFragmentV4 can't find android.support.v4.app

编译UVCCamera生成signed apk时,报一堆这样的错:

1
2
3
Warning:com.serenegiant.dialog.MessageDialogFragmentV4: can't find referenced method 'void show(android.support.v4.app.FragmentManager,java.lang.String)' in program class com.serenegiant.dialog.MessageDialogFragmentV4
Warning:com.serenegiant.dialog.MessageDialogFragmentV4: can't find referenced method 'void setTargetFragment(android.support.v4.app.Fragment,int)' in program class com.serenegiant.dialog.MessageDialogFragmentV4
com.serenegiant.dialog.MessageDialogFragmentV4: can't find referenced class android.support.v4.app.Fragment

解决办法,把libuvccamera和usbCameraCommon目录中的build.gradle修改一下,注释掉'support-v4':

1
2
3
compile("com.serenegiant:common:${commonLibVersion}") {
//	exclude module: 'support-v4'
}