I have no experience with that combination. Is there a stack trace or error 
message along with the crash?

On Wednesday, March 21, 2018 at 1:37:11 PM UTC+1, jlp hu wrote:
>
> flutter' app crash met with gomobile package .aar
>
>    1. 
>    
>    I follow the guidence https://flutter.io/platform-channels/ ... It 
>    works; I can see the result in Simulator.
>    2. 
>    
>    I write a simple code in Golang, Gomobile bind -target=android, get 
>    .aar file, put into libs, the app stopped when the call happened. The code 
>    is very simple:
>    
> package bond
>
> import (
>
> )
>
> func FirstCall() int{
> return 20180311
> }
>
> func SecondCall() string{
> return "20180311"
> }
>
> func ThirdCall() {
> }
>
> type Counter struct {
> Value int
> }
>
> func (c *Counter) Inc() { c.Value++ }
>
> func NewCounter() *Counter { return &Counter{ 5 } }
> 3) I create app with Android Studio, put the .aar file in, and call, it 
> gets the right return.
>
> final String stext=Bond.secondCall();
> 4) So the problem is, there are 2 bridges here; each of them work, but put 
> together, it crashes.
>
> Anybody could give me a solution? Is the problem in Flutter or Gomobile?
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to