简体   繁体   English

startapp中的java.lang.AssertionError

[英]java.lang.AssertionError at startapp

I was trying to fix in my project, but I could not figure out how. 我试图修复我的项目,但我不知道如何解决。 Everything went well during development, but after sharing to store and download it as this error occurred. 在开发过程中一切正常,但是在共享存储和下载该错误之后,一切都进行了。 It makes me mad. 这让我生气。 Who can help me how to fix this ?. 谁能帮助我解决此问题? please. 请。 thanks so much! 非常感谢!

This is my error : 这是我的错误:

堆栈跟踪

Report on store : 店铺报告:

店铺报告

my code on FirstActivity class 我在FirstActivity类上的代码

public class FirstActivity extends AppCompatActivity implements View.OnClickListener {
    ImageButton btnStart, btnMoreApp;
    private AdView adView;
    private AlertDialog alertDialog;
    StartAppAd startAppAd;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.layout_first);
    adView = (AdView) findViewById(R.id.adView);
    startAppAd = new StartAppAd(this);
    AdRequest adRequest = new AdRequest.Builder().build();
    adView.loadAd(adRequest);

    //ad startApp
    StartAppSDK.init(this, "106697618", "200046203", true);
    /** Create Splash Ad **/
    StartAppAd.showSplash(this, savedInstanceState,
            new SplashConfig()
                    .setTheme(SplashConfig.Theme.GLOOMY)
                    .setLogo(R.drawable.ic_launcher)
                    .setAppName("Photo Frame")
    );

    btnStart = (ImageButton) findViewById(R.id.btn_start);
    btnMoreApp = (ImageButton) findViewById(R.id.btn_more_app);
    btnStart.setOnClickListener(this);
    btnMoreApp.setOnClickListener(this);
    }

}

... ...

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services-ads:8.4.0'
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM