怎么解决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)我<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 没有加载或找到这个。请帮我。