2016-05-16 80 views
-3

我得到这个错误,我不知道为什么。帮我给它一些资源错误,但我只是从网上复制项目的工作100%的罚款,当我在Android Studio中创建新项目,只是代码粘贴所有数据,它给了我这个错误,我不知道它是什么。任何人都可以告诉我?

我logcat的截图http://i.stack.imgur.com/lQ6CL.jpg

import com.google.analytics.tracking.android.EasyTracker; 
import android.content.res.Configuration; 
import android.graphics.Typeface; 
import android.os.Bundle; 
import android.support.v4.app.FragmentActivity; 
import android.widget.Toast; 

public class BaseActivity extends FragmentActivity { 

public static Typeface sRobotoBlack; 
public static Typeface sRobotoBlackItalic; 
public static Typeface sRobotoLight; 
public static Typeface sRobotoLightItalic; 
public static Typeface sRobotoThin; 

private Toast mToast; 

@Override 
protected void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState); 

    initTypefaces(); 
} 

@Override 
public void onStart() { 
    super.onStart(); 
    EasyTracker.getInstance(this).activityStart(this); 
} 

@Override 
public void onStop() { 
    super.onStop(); 
    EasyTracker.getInstance(this).activityStop(this); 
} 

@Override 
protected void onDestroy() { 
    super.onDestroy(); 
    if (mToast != null) { 
     mToast.cancel(); 
    } 
} 

@Override 
public void onConfigurationChanged(Configuration newConfig) { 
    super.onConfigurationChanged(newConfig); 
} 

public void makeToast(int resId) { 
    makeToast(getString(resId)); 
} 

public void makeToast(String text) { 
    if (mToast == null) { 
     mToast = Toast.makeText(this, text, Toast.LENGTH_LONG); 
    } else { 
     mToast.setText(text); 
    } 
    mToast.show(); 
} 

private void initTypefaces() { 
    if (sRobotoBlack == null) { 
     sRobotoBlack = Typeface.createFromAsset(getAssets(), 
       "fonts/Roboto-Black.ttf"); 
    } 
    if (sRobotoBlackItalic == null) { 
     sRobotoBlackItalic = Typeface.createFromAsset(getAssets(), 
       "fonts/Roboto-BlackItalic.ttf"); 
    } 
    if (sRobotoLight == null) { 
     sRobotoLight = Typeface.createFromAsset(getAssets(), 
       "fonts/Roboto-Light.ttf"); 
    } 
    if (sRobotoLightItalic == null) { 
     sRobotoLightItalic = Typeface.createFromAsset(getAssets(), 
       "fonts/Roboto-LightItalic.ttf"); 
    } 
    if (sRobotoThin == null) { 
     sRobotoThin = Typeface.createFromAsset(getAssets(), 
       "fonts/Roboto-Thin.ttf"); 
    } 
} 
} 

回答

0

复制旧string.xmlstring.xml下价值观的文件夹

+0

检查aove我attech上启动ü还可以在这里看到我的http://imgur.com/屏幕截图uTdn2R7 –

+0

我不明白你说什么?请给我解决方案什么是错误? –

+0

问题是在EasyTracker类中你能否上传类代码。 –

相关问题