Demo için bir android e-ticaret UI geliştirmeye çalışıyorum. Şablon dosyalarını bu kaynaktan github https://github.com/Appdynamics/ECommerce-Android'dan indirdim. Ben robot stüdyoda uygulamayı çalıştırdığınızda her şey iyi yapıyor ancak benim emülatörünüzde uygulamasını açmak için gittiğinizde oAppKey boş veya boş olamaz
java.lang.RuntimeException: Unable to create application com.appdynamics.demo.android.CustomApplication: java.lang.IllegalArgumentException: AppKey cannot be null or empty
Sorunun tarafından bu kod satırından mi geliyor LogCat bu hata iletisiyle kilitleniyor Ben
public class CustomApplication extends Application {
@Override
@InfoPoint
public void onCreate() {
super.onCreate();
setGlobalData();
Instrumentation.start(GlobalDataProvider.getInstance().getEumAppKey(),
getApplicationContext(),
GlobalDataProvider.getInstance().getCollectorUrl(),
true);
İşte Herhangi bir giriş büyük teşekkürler duyacağız preferences.xml dosyası
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:title="@string/action_settings">
<EditTextPreference android:key="pref_rest_uri" android:title="@string/pref_rest_uri"
/><!-- android:defaultValue="http://192.168.31.117:8000/appdynamicspilot/"-->pref_eum_eum_app_key
<EditTextPreference android:key="pref_eum_app_key" android:title="@string/pref_eum_app_key"/>
<EditTextPreference android:title="@string/pref_eum_collector_url" android:key="pref_eum_collector_url"/>
</PreferenceScreen>
olduğunu nasıl düzeltileceği emin değilim.
Teşekkür ederim, bu dosyayı mı oluşturmalıyım yoksa hepsi hazır mı? –
Zaten orada. –
Bu kadar basit soruları sorduğum için üzgünüm, uygulama geliştirmede çok yeniyim. Bu iplere ne koyduğum önemli mi? –