gomobile打包时候,go里面的返回类型是bool,打包失败,怎么处理?


package test

func Test() (int, bool) {
    return 1, true
}

就这个简单的代码,gomobile打包aar的时候就会报错。
second result value must be of type error: func command-line-arguments.Test() (int, bool)
意思是第二个返回值必须是个指定的类型。