小编Sau*_*ari的帖子

MediaPlayer:在状态 8、mPlayer(0x9a318160) 下调用prepareAsync

怎么解决java.lang.IllegalStateException?当转移到另一项活动时会发生这种情况

这个日志猫:

05-24 01:48:07.312 25905-25905/andie16n.abc_ind_english E/MediaPlayer: 在状态 8 下调用了prepareAsync,mPlayer(0x9a318160)

这个java代码:

package andie16n.abc_ind_english;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageButton;

/**
 * Created by andie on 11/05/2017.
 */

public class Abc_play_all extends Activity implements MediaPlayer.OnCompletionListener {
    private ImageButton tombol_play;
    private ImageButton tombol_play_a;
    private ImageButton tombol_play_b;
    private ImageButton tombol_play_c;
    private ImageButton tombol_play_d;
    private ImageButton tombol_play_e;
    private ImageButton tombol_play_f;
    private ImageButton tombol_play_g;
    private ImageButton tombol_play_h;
    private ImageButton tombol_play_i;
    private ImageButton …
Run Code Online (Sandbox Code Playgroud)

android

3
推荐指数
1
解决办法
3587
查看次数

我的本地 JavaScript 文件未在 Angular 2 中加载

<script type='text/javascript' src='Test.js'>index.html 中添加了一个本地 javascript 文件,但是当我使用 ng serve 运行它并转到时localhost:4200,在我的浏览器控制台中,我看到了这个错误:

GET localhost:4200/Test.js 404 (Not Found) 但我的文件与我的 index.html 位于同一位置。

但 angular 2 没有加载或找到这个。请帮我。

javascript angular

0
推荐指数
1
解决办法
1954
查看次数

标签 统计

android ×1

angular ×1

javascript ×1