Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 15    Views: 96

cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
05/23/13 05:40 PM (12 years ago)

SP Youtube assistance

I was wondering if you could assist me with my issue. I can't get the youtube video to play when I click on the play button. It shutdown the app. Here is what it says it is wrong. 05-23 17:47:59.726: E/dalvikvm(299): Could not find class 'com.keyes.youtube.OpenYouTubePlayerActivity', referenced from method com.embcandroid.Sp_youtube_android$1.onClick 05-23 17:47:59.726: W/dalvikvm(299): VFY: unable to resolve const-class 351 (Lcom/keyes/youtube/OpenYouTubePlayerActivity;) in Lcom/embcandroid/Sp_youtube_android$1; 05-23 17:47:59.726: D/dalvikvm(299): VFY: replacing opcode 0x1c at 0x001e 05-23 17:47:59.726: D/dalvikvm(299): VFY: dead code 0x0020-0028 in Lcom/embcandroid/Sp_youtube_android$1;.onClick (Landroid/view/View;)V 05-23 17:47:59.726: W/ZZ(299): Sp_youtube_android:onStart (BASE CLASS) 05-23 17:47:59.726: W/ZZ(299): Sp_youtube_android: start GPS is set to NO in the applications configuration data, not starting GPS 05-23 17:47:59.726: W/ZZ(299): Sp_youtube_android:onResume (BASE CLASS) 05-23 17:48:00.026: W/ZZ(299): BT_screen_menuList:onStop (BASE CLASS) 05-23 17:48:02.465: D/AndroidRuntime(299): Shutting down VM 05-23 17:48:02.465: W/dalvikvm(299): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 05-23 17:48:02.476: E/AndroidRuntime(299): FATAL EXCEPTION: main 05-23 17:48:02.476: E/AndroidRuntime(299): java.lang.NoClassDefFoundError: com.keyes.youtube.OpenYouTubePlayerActivity 05-23 17:48:02.476: E/AndroidRuntime(299): at com.embcandroid.Sp_youtube_android$1.onClick(Sp_youtube_android.java:143) 05-23 17:48:02.476: E/AndroidRuntime(299): at android.view.View.performClick(View.java:2408) 05-23 17:48:02.476: E/AndroidRuntime(299): at android.view.View$PerformClick.run(View.java:8816) 05-23 17:48:02.476: E/AndroidRuntime(299): at android.os.Handler.handleCallback(Handler.java:587) 05-23 17:48:02.476: E/AndroidRuntime(299): at android.os.Handler.dispatchMessage(Handler.java:92) 05-23 17:48:02.476: E/AndroidRuntime(299): at android.os.Looper.loop(Looper.java:123) 05-23 17:48:02.476: E/AndroidRuntime(299): at android.app.ActivityThread.main(ActivityThread.java:4627) 05-23 17:48:02.476: E/AndroidRuntime(299): at java.lang.reflect.Method.invokeNative(Native Method) 05-23 17:48:02.476: E/AndroidRuntime(299): at java.lang.reflect.Method.invoke(Method.java:521) 05-23 17:48:02.476: E/AndroidRuntime(299): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 05-23 17:48:02.476: E/AndroidRuntime(299): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 05-23 17:48:02.476: E/AndroidRuntime(299): at dalvik.system.NativeStart.main(Native Method) 05-23 17:48:07.506: I/Process(299): Sending signal. PID: 299 SIG: 9
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/23/13 06:16 PM (12 years ago)
Have you followed the instructions to add the openyoutubeactivity jar file to the build path and add the activity to the manifest? It looks like you've missed to do one or both.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
05/23/13 06:17 PM (12 years ago)
Hi @cyborg2g, Import the jar file into your project. LA
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/23/13 06:21 PM (12 years ago)
I imported the one the one that was in the instructions.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/23/13 06:30 PM (12 years ago)
Hi @cyborg2g, Are you using the ADT v22 update? If you click on ADT then choose About ADT. is it v22.0.0-675183?
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/23/13 06:35 PM (12 years ago)
I tried one more time and it began working...Thanks
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/23/13 06:35 PM (12 years ago)
..
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
05/23/13 06:38 PM (12 years ago)
Awesome @cyborg2g! LA
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/23/13 07:11 PM (12 years ago)
@LA Thanks
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/23/13 09:59 PM (12 years ago)
@cyborg2g, curious still as to what ADT you are running is it possibly v22? There are some things to consider when java.lang.NoClassDefFoundError: pops up and using the v22 ADT
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/25/13 07:35 PM (12 years ago)
@ian yes I'm running v22. Should I be running something different? TJ
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/25/13 08:05 PM (12 years ago)
v22 is the most recent update so that's great. Although in ADT v22 it's been noted that errors like you had, java.lang.NoClassDefFoundError: could be due to the Android Private Libraries box not being automatically checked. Right click on project --> Properties-->Order and Export--> Private Libraries should be checked. example: https://dl.dropboxusercontent.com/u/39276137/AndroidPrivateLibraries.png Sounds like you're all good though. Just something to be aware of. cheers! ian
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/25/13 10:00 PM (12 years ago)
ian you are a lifesaver because the error came back and I was banging my head against the wall. That fixed it right up. Thank you. Now is there anyway or any suggestion you can give for fixing the "file not downloaded error" for the HTML 5 plugin? I'm trying to have all this fixed before tomorrow. TJ
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/25/13 11:20 PM (12 years ago)
Glad u got the NoClassDef error settled. I see what you mean about the HTML plugin. Keep u posted!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/26/13 12:57 AM (12 years ago)
Ian's turning into our resident Android expert! Good stuff here.
 
Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
like
07/25/13 04:16 AM (12 years ago)
@Ian you made my days. Thanks a lot. I was stuck on it for last 4 days.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.