小编Moh*_*deh的帖子

setText导致"Resources $ NotFoundException"

我不知道为什么"tex.SetText(score1);" 抛出Resources $ NotFoundException异常我的代码java如下:

package com.example.mehran.golyapooch;  

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu; 
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.EditText;


public class startwith2player extends ActionBarActivity {




private boolean playerone = true , playertwo = false ;
private Integer score1 = 0 , score2 = 0;
private Integer flag4 = 0 , flag5 = 0 , flag6 = 0 , flag7 = 0, flag8 = 0, flag9 = 0 , flag10 = 0, flag11 = 0, flag12 = 0; …
Run Code Online (Sandbox Code Playgroud)

java android settext android-edittext

-2
推荐指数
1
解决办法
64
查看次数

标签 统计

android ×1

android-edittext ×1

java ×1

settext ×1