Android - Unity as a Library -- Native libraries not loaded

Aperta
#83 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
24/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
android, unity
Ambito
mobile-dev

Direzione di ricerca

The report points to the Android Unity as a Library demo and differences in exported AAR files, unity-classes.jar, and script nesting, but names no source files or tests. Start by comparing the demo and the reporter’s project exports and checking how the native libraries are loaded before sendMessage() is called. Done means identifying why the libraries are not loaded and confirming that messages are delivered.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I have been searching for days, I used the exact same implementation guide as in the demo, which worked fine for the demo but when using it on my unity project I keep getting this error when I try and use mUnityPlayer.sendMessage() :

W/Unity: Native libraries not loaded - dropping message for #######.#########

I've looked through the the two projects to find a difference and the only one I see is that in the libs folder when they are exported unity exports multiple .aar folders in our project along with the unity-classes.jar file and just the unity-classes.jar file for the demo. The other difference is our project has these scripts nested instead of just on the top level folder.

I have tried multiple editor versions and that doesn't work either.

Do I need to change the implementation somehow to load the native libraries? Or is this a known bug.

Lingua principale
Objective-C++
Stelle
815
Fork
252
Merge medio
21h 42m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Unity-Technologies/uaal-example

Tutte le issue di Unity-Technologies/uaal-example

Issue simili

Altre issue su Mobile Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.