Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

update air sdk of animate cc please

New Here ,
Aug 13, 2018 Aug 13, 2018

Hi. I'm trying to make a simple player test but the app crash when I call createPlayerView using Animate.

i use ANE media player from distriqt

  • AIR SDK version: 30
  • Device OS: 4.2.2
  • Device version: SAMSUNG
  • Development IDE: ANIMATE CC 2017
  • Development OS: win7 64

This is the code, in 1st and only frame:

import com.distriqt.extension.mediaplayer.MediaPlayer;
import com.distriqt.extension.mediaplayer.MediaPlayerOptions;
import com.distriqt.extension.mediaplayer.MediaPlayerView;
import com.distriqt.extension.mediaplayer.events.MediaErrorEvent;
import com.distriqt.extension.mediaplayer.events.MediaPlayerEvent;
import com.distriqt.extension.mediaplayer.events.MediaProgressEvent;
import com.distriqt.extension.mediaplayer.events.MediaThumbnailEvent;
import com.distriqt.utils.FileUtils;  MediaPlayer.init("XXXXXXXXXXXX");
var options:MediaPlayerOptions = new MediaPlayerOptions(); options.viewport = new Rectangle( 0, 0, 100, 100 );
options.backgroundColour = 0xFFFFFFFF;
options.controlsEnabled = true; var player:MediaPlayerView = MediaPlayer.service.createPlayerView( options );
stop();

this the log
I/com.distriqt.MediaPlayer(27291): MediaPlayerController::createPlayer( [null, false, true, controls:embedded, 0, 0, 100, 100, false] )
I/com.distriqt.MediaPlayer(27291): MediaPlayer::createPlayer( [null, false, true, controls:embedded, 0, 0, 100, 100, false]
I/com.distriqt.MediaPlayer(27291): ExoPlayerFragment::onCreateView()
D/AndroidRuntime(27291): Shutting down VM
E/AndroidRuntime(27291): FATAL EXCEPTION: main
E/AndroidRuntime(27291): Process: air.com.tecnologiacreativa.tcplayer, PID: 27291
E/AndroidRuntime(27291): android.view.InflateException: Binary XML file line #7: Error inflating class com.google.android.exoplayer2.ui.SimpleExoPlayerView
E/AndroidRuntime(27291): at android.view.LayoutInflater.createView(LayoutInflater.java:633)
E/AndroidRuntime(27291): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
E/AndroidRuntime(27291): at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
E/AndroidRuntime(27291): at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
E/AndroidRuntime(27291): at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
E/AndroidRuntime(27291): at com.distriqt.extension.mediaplayer.player.exoplayer.ExoPlayerFragment.onCreateView(ExoPlayerFragment.java:160)
E/AndroidRuntime(27291): at android.app.Fragment.performCreateView(Fragment.java:2112)
E/AndroidRuntime(27291): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:904)
E/AndroidRuntime(27291): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1083)
E/AndroidRuntime(27291): at android.app.BackStackRecord.run(BackStackRecord.java:834)
E/AndroidRuntime(27291): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1468)
E/AndroidRuntime(27291): at android.app.FragmentManagerImpl$1.run(FragmentManager.java:451)
E/AndroidRuntime(27291): at android.os.Handler.handleCallback(Handler.java:739)
E/AndroidRuntime(27291): at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime(27291): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(27291): at android.app.ActivityThread.main(ActivityThread.java:5910)
E/AndroidRuntime(27291): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(27291): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(27291): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
E/AndroidRuntime(27291): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
E/AndroidRuntime(27291): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime(27291): at java.lang.reflect.Constructor.newInstance(Native Method)
E/AndroidRuntime(27291): at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
E/AndroidRuntime(27291): at android.view.LayoutInflater.createView(LayoutInflater.java:607)
E/AndroidRuntime(27291): ... 19 more
E/AndroidRuntime(27291): Caused by: java.lang.NoSuchFieldError: No static field PlayerView of type [I in class Lcom/google/android/exoplayer2/ui/R$styleable; or its superclasses (declaration of 'com.google.android.exoplayer2.ui.R$styleable' appears in /data/app/air.com.tecnologiacreativa.tcplayer-1/base.apk)
E/AndroidRuntime(27291): at com.google.android.exoplayer2.ui.PlayerView.<init>(PlayerView.java:306)
E/AndroidRuntime(27291): at com.google.android.exoplayer2.ui.PlayerView.<init>(PlayerView.java:265)
E/AndroidRuntime(27291): at com.google.android.exoplayer2.ui.SimpleExoPlayerView.<init>(SimpleExoPlayerView.java:35)
E/AndroidRuntime(27291): ... 22 more

i showed the log to the manager of distriqt and he said

Animate uses a built in compiler, not the one in the AIR SDK, as such it is out-dated and does not support modern Android versions.

We are pestering Adobe about this issue but please feel free to voice your issue as well.

so please can you fix the AIR SDK



776
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 13, 2018 Aug 13, 2018

these are user-to-user forums.  post your issue here, Feature Request/Bug Report Form

Translate
Community Expert ,
Aug 13, 2018 Aug 13, 2018

these are user-to-user forums.  post your issue here, Feature Request/Bug Report Form

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Aug 13, 2018 Aug 13, 2018

Hi there,

Thanks for pointing this out.

I am checking with our development team regarding this and will get back to you with gathered information.

Regards!

Ankush

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 13, 2018 Aug 13, 2018
LATEST

i post it but he tell me limit of Letters @kglad  i cant post my question to them

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines