Android Question I got an error and need help

AndyChang

Member
Licensed User
Dear Sir

I down load an example (ExoPlayer.zip, ExoPlayerExample.zip) and try to learn How to play a MP4 video in my APP program.
The download source is in here ( https://www.b4x.com/android/forum/threads/exoplayer-mediaplayer-videoview-alternative.72652/ )

I have install the library of ExoPlayer successfully and copy exoplayer.aar into the additional libraries folder.
I run it but get error:

B4A version: 7.01
Parsing code. (0.00s)
Compiling code. (0.04s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. Error
invalid resource directory name: D:\Users\Administrator\Desktop\video1\B4A Samples\Objects\bin\extra\res1\res/values-b+sr+Latn

Please help to find out what's wrong with my testing. Thank you.

Andy
 

AndyChang

Member
Licensed User
Dear Erel
I follow the instructions 1-7 step by step, and successfully update Android SDK Manager.
Then I run the program. I found I cannot pass the compile stage(error msg as attached file)
Then I found that I cannot execute tools - Run AVD Manager
Now, even other programs cannot be executed.
I am confused and don't know how to solve the problem.
I increase RAM from 4GB to 8GB but no use.
Please advise me. Thanks a lot.
Andy
 

Attachments

  • 1.png
    1.png
    90.8 KB · Views: 224
  • 2.png
    2.png
    162.7 KB · Views: 207
  • 3.png
    3.png
    49.1 KB · Views: 196
  • 4.png
    4.png
    54.3 KB · Views: 230
  • 5.png
    5.png
    56.6 KB · Views: 175
Upvote 0

AndyChang

Member
Licensed User
Dear Erel

I re-execute all the steps again but get the same results. Now I can't even run the previous routines. My situations are

1. I can create a new AVD by running B4ASdkManager.jar but I cannot execute tools - Run AVD Manager (when choose it, it just stop there and response nothing)
2. When I run any executable program, the compiler shows the same error msg as attached error msg.
3. I cannot re-construct the previous B4A program develop environment. So now I cannot do anything unless the above two problems can be resolved.

Please give me any suggestion so that I can go on try and resolve the problems.
Should I uninstall all the B4A /Java / Android everything and install all once again?
I need your suggestion. Thanks a lot.

Andy
 

Attachments

  • error message.png
    error message.png
    29.7 KB · Views: 272
Upvote 0

AndyChang

Member
Licensed User
Dear Erel
It is so simple to solve my problem.
I decrease MaxRamForDex from 2048 down to 1024 Then everything alive.
I am so happy for your so helpful suggestion. Thank you very much.
Andy
 
Upvote 0
Top