Pitch Detection in Android using TarsosDSP
Jesus Rios
282

there was an error running the app…

i got this error

10–16 14:16:24.915 4000–4000/? E/AndroidRuntime: FATAL EXCEPTION: main
 Process: com.example.thread009.myapplication, PID: 4000
 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.thread009.myapplication/com.example.thread009.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method ‘android.view.Window$Callback android.view.Window.getCallback()’ on a null object reference
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2567)
 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
 at android.app.ActivityThread.-wrap12(ActivityThread.java)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
 at android.os.Handler.dispatchMessage(Handler.java:102)
 at android.os.Looper.loop(Looper.java:154)
 at android.app.ActivityThread.main(ActivityThread.java:6119)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
 Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘android.view.Window$Callback android.view.Window.getCallback()’ on a null object reference
 at android.support.v7.app.AppCompatDelegateImplBase.<init>(AppCompatDelegateImplBase.java:118)
 at android.support.v7.app.AppCompatDelegateImplV9.<init>(AppCompatDelegateImplV9.java:152)
 at android.support.v7.app.AppCompatDelegateImplV11.<init>(AppCompatDelegateImplV11.java:29)
 at android.support.v7.app.AppCompatDelegateImplV14.<init>(AppCompatDelegateImplV14.java:53)
 at android.support.v7.app.AppCompatDelegateImplV23.<init>(AppCompatDelegateImplV23.java:31)
 at android.support.v7.app.AppCompatDelegateImplN.<init>(AppCompatDelegateImplN.java:31)
 at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:200)
 at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:184)
 at android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:518)
 at android.support.v7.app.AppCompatActivity.findViewById(AppCompatActivity.java:189)
 at com.example.thread009.myapplication.MainActivity.<init>(MainActivity.java:23)
 at java.lang.Class.newInstance(Native Method)
 at android.app.Instrumentation.newActivity(Instrumentation.java:1078)
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2557)
 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) 
 at android.app.ActivityThread.-wrap12(ActivityThread.java) 
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) 
 at android.os.Handler.dispatchMessage(Handler.java:102) 
 at android.os.Looper.loop(Looper.java:154) 
 at android.app.ActivityThread.main(ActivityThread.java:6119) 
 at java.lang.reflect.Method.invoke(Native Method) 
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

Like what you read? Give Dimas Naresh a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.