2016-05-16 5 views
-3

Ich bekomme diesen Fehler ich weiß nicht warum. helfen Sie mir sein geben Sie einige Ressourcenfehler, aber ich kopiere Projekt von Netz seine Arbeit 100% gut, wenn ich neues Projekt in Android Studio erstelle und nur Code gebe alle Daten ein, die ihm diesen Fehler geben, verstehe ich nicht, was es ist. Kann mir das jemand sagen ??

mein logcat Screenshot 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"); 
    } 
} 
} 

Antwort

0

kopieren Sie die alte string.xml in Ihrem string.xml unter Werte Ordner

+0

Check Äôve i auf Start mein Screenshot attech u kann auch hier sehen http://imgur.com/ uTdn2R7 –

+0

ich verstehe nicht, was du sagst? bitte gib mir lösung was ist ein fehler? –

+0

Das Problem ist in der Klasse EasyTracker können Sie den Klassencode hochladen. –

Verwandte Themen