2017-09-21 2 views
-2

I get this error occcure when I build sign apk don't know but when I build simple apk these error does not occur,plz help me resolve this.エラー:(48、13)エラー:式の違法開始

PTAdChartboostBridge.s_activity.get) 
    { 

    PTAdChartboostBridge(new Runnable); 

     { 

      public void run(); 
      { 
       if (PTAdChartboostBridge.appId() == null || PTAdChartboostBridge.appSignature() == null) { 

        Chartboost.startWithAppId(PTAdChartboostBridge.activity, PTAdChartboostBridge.appId(), PTAdChartboostBridge.appSignature()); 
        Chartboost.setLoggingLevel(Level.ALL); 
        Chartboost.setDelegate(delegate); 
        Chartboost.onCreate(PTAdChartboostBridge.activity); 

        initComplete = true; 

        Chartboost.onStart(PTAdChartboostBridge.activity); 
        return; 
       } 

      } 

     } 

error is in this code plzz help??? 
+1

以下のようになりますので、48行目でエラーですが、どこその行番号は、あなたのスニペットでを指していますか? – dr0i

答えて

0

あなたがしようとしているものは何でもやっていません。あなたのフォーマットは全く間違っています。 私は、基本をもう一度やり直すことをお勧めします。

しかし正しい形式は

new Runnable() { 
    @Override 
    public void run() { 
     if (PTAdChartboostBridge.appId() == null || PTAdChartboostBridge.appSignature() == null) { 

      Chartboost.startWithAppId(PTAdChartboostBridge.activity, PTAdChartboostBridge.appId(), PTAdChartboostBridge.appSignature()); 
      Chartboost.setLoggingLevel(Level.ALL); 
      Chartboost.setDelegate(delegate); 
      Chartboost.onCreate(PTAdChartboostBridge.activity); 

      initComplete = true; 

      Chartboost.onStart(PTAdChartboostBridge.activity); 
      return; 
     } 
    } 
} 
+0

私はアンドロイドの新しい私は多くの私のさらなるミスを訂正することができます –

関連する問題