Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Portuguese
  4. erro ao transferir a aplicação para o android
Forum Updated to NodeBB v4.3 + New Features

erro ao transferir a aplicação para o android

Scheduled Pinned Locked Moved Portuguese
6 Posts 3 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    joanaguimas
    wrote on last edited by
    #1

    Olá, estou a tentar criar uma aplicação mobile para android em qml, mas estava tudo a correr bem, quando começou a aparecer alguns erros como: 'showStatusIcon on inactive InputConnection'

    Agora, nem as aplicações que tinha já feito e corriam bem, nao funcionam mais.
    por exemplo, quando corro o 'Hello World' aparecem estas msgs:

    (...)
    I/Choreographer( 3595): Skipped 79 frames! The application may be doing too much work on its main thread.
    W/IInputConnectionWrapper( 3595): showStatusIcon on inactive InputConnection
    D/dalvikvm( 3595): GC_FOR_ALLOC freed 321K, 13% free 9654K/11015K, paused 14ms, total 14ms
    I/dalvikvm-heap( 3595): Grow heap (frag case) to 11.266MB for 1048592-byte allocation
    D/dalvikvm( 3595): GC_CONCURRENT freed 5K, 12% free 10673K/12103K, paused 15ms+10ms, total 60ms
    D/dalvikvm( 3595): WAIT_FOR_CONCURRENT_GC blocked 46ms
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3595
    D/HAWAII_EGL( 3595): eglDestroySurface() surface: 0x4fcf7eb0, android window 0x4fcfbff0, Thread: 3595
    D/HAWAII_EGL( 3595): Set SWAP INTERVAL 0
    D/HAWAII_EGL( 3595): eglCreateWindowSurface() surface: 0x4fcfbd78, VC surface: 2, Thread: 3595
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x4fcf8388, 0x4fcfbd78, 0x4fcfbd78) Thread: 3595
    I/Choreographer( 3595): Skipped 71 frames! The application may be doing too much work on its main thread.
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x4fcf8388, 0x51b6b2f0, 0x51b6b2f0) Thread: 3595
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3595
    D/HAWAII_EGL( 3595): eglCreateContext() config: 39 context: 0x51b6a980, VC context 2, Thread 3765
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x51b6a980, 0x5198e098, 0x5198e098) Thread: 3765
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3765
    E/HAWAII_EGL( 3595): Destroying surface without window
    D/HAWAII_EGL( 3595): Set SWAP INTERVAL 0
    D/HAWAII_EGL( 3595): eglCreateWindowSurface() surface: 0x4fcfc410, VC surface: 5, Thread: 3951
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x51b6a980, 0x4fcfc410, 0x4fcfc410) Thread: 3951
    W/IInputConnectionWrapper( 3595): getSelectedText on inactive InputConnection
    W/IInputConnectionWrapper( 3595): setComposingText on inactive InputConnection
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x4fcf8388, 0x4fcfbd78, 0x4fcfbd78) Thread: 3595
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3951
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x51b6a980, 0x4fcfc410, 0x4fcfc410) Thread: 3951
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3951
    D/HAWAII_EGL( 3595): eglDestroyContext() context: 0x51b6a980, VC context: 2, Thread 3951
    D/HAWAII_EGL( 3595): eglDestroySurface() surface: 0x4fcfc410, android window 0x51b69880, Thread: 3765
    W/Qt ( 3595): androidjnimain.cpp:546 (void setSurface(JNIEnv*, jobject, jint, jobject, jint, jint)): Can't find surface 1
    W/SurfaceView( 3595): CHECK surface infomation creating=false formatChanged=false sizeChanged=false visible=false visibleChanged=true surfaceChanged=true realSizeChanged=false redrawNeeded=false left=false top=false
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3595
    D/HAWAII_EGL( 3595): eglDestroySurface() surface: 0x4fcfbd78, android window 0x51b69278, Thread: 3595
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x4fcf8388, 0x51b6b2f0, 0x51b6b2f0) Thread: 3595
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3595

    "org.qtproject.example.untitled" died.

    Será que alguém me pode ajudar?

    Obrigada!

    R 1 Reply Last reply
    0
    • J joanaguimas

      Olá, estou a tentar criar uma aplicação mobile para android em qml, mas estava tudo a correr bem, quando começou a aparecer alguns erros como: 'showStatusIcon on inactive InputConnection'

      Agora, nem as aplicações que tinha já feito e corriam bem, nao funcionam mais.
      por exemplo, quando corro o 'Hello World' aparecem estas msgs:

      (...)
      I/Choreographer( 3595): Skipped 79 frames! The application may be doing too much work on its main thread.
      W/IInputConnectionWrapper( 3595): showStatusIcon on inactive InputConnection
      D/dalvikvm( 3595): GC_FOR_ALLOC freed 321K, 13% free 9654K/11015K, paused 14ms, total 14ms
      I/dalvikvm-heap( 3595): Grow heap (frag case) to 11.266MB for 1048592-byte allocation
      D/dalvikvm( 3595): GC_CONCURRENT freed 5K, 12% free 10673K/12103K, paused 15ms+10ms, total 60ms
      D/dalvikvm( 3595): WAIT_FOR_CONCURRENT_GC blocked 46ms
      D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3595
      D/HAWAII_EGL( 3595): eglDestroySurface() surface: 0x4fcf7eb0, android window 0x4fcfbff0, Thread: 3595
      D/HAWAII_EGL( 3595): Set SWAP INTERVAL 0
      D/HAWAII_EGL( 3595): eglCreateWindowSurface() surface: 0x4fcfbd78, VC surface: 2, Thread: 3595
      D/HAWAII_EGL( 3595): eglMakeCurrent(0x4fcf8388, 0x4fcfbd78, 0x4fcfbd78) Thread: 3595
      I/Choreographer( 3595): Skipped 71 frames! The application may be doing too much work on its main thread.
      D/HAWAII_EGL( 3595): eglMakeCurrent(0x4fcf8388, 0x51b6b2f0, 0x51b6b2f0) Thread: 3595
      D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3595
      D/HAWAII_EGL( 3595): eglCreateContext() config: 39 context: 0x51b6a980, VC context 2, Thread 3765
      D/HAWAII_EGL( 3595): eglMakeCurrent(0x51b6a980, 0x5198e098, 0x5198e098) Thread: 3765
      D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3765
      E/HAWAII_EGL( 3595): Destroying surface without window
      D/HAWAII_EGL( 3595): Set SWAP INTERVAL 0
      D/HAWAII_EGL( 3595): eglCreateWindowSurface() surface: 0x4fcfc410, VC surface: 5, Thread: 3951
      D/HAWAII_EGL( 3595): eglMakeCurrent(0x51b6a980, 0x4fcfc410, 0x4fcfc410) Thread: 3951
      W/IInputConnectionWrapper( 3595): getSelectedText on inactive InputConnection
      W/IInputConnectionWrapper( 3595): setComposingText on inactive InputConnection
      D/HAWAII_EGL( 3595): eglMakeCurrent(0x4fcf8388, 0x4fcfbd78, 0x4fcfbd78) Thread: 3595
      D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3951
      D/HAWAII_EGL( 3595): eglMakeCurrent(0x51b6a980, 0x4fcfc410, 0x4fcfc410) Thread: 3951
      D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3951
      D/HAWAII_EGL( 3595): eglDestroyContext() context: 0x51b6a980, VC context: 2, Thread 3951
      D/HAWAII_EGL( 3595): eglDestroySurface() surface: 0x4fcfc410, android window 0x51b69880, Thread: 3765
      W/Qt ( 3595): androidjnimain.cpp:546 (void setSurface(JNIEnv*, jobject, jint, jobject, jint, jint)): Can't find surface 1
      W/SurfaceView( 3595): CHECK surface infomation creating=false formatChanged=false sizeChanged=false visible=false visibleChanged=true surfaceChanged=true realSizeChanged=false redrawNeeded=false left=false top=false
      D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3595
      D/HAWAII_EGL( 3595): eglDestroySurface() surface: 0x4fcfbd78, android window 0x51b69278, Thread: 3595
      D/HAWAII_EGL( 3595): eglMakeCurrent(0x4fcf8388, 0x51b6b2f0, 0x51b6b2f0) Thread: 3595
      D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3595

      "org.qtproject.example.untitled" died.

      Será que alguém me pode ajudar?

      Obrigada!

      R Offline
      R Offline
      ReinaldoJr
      wrote on last edited by ReinaldoJr
      #2

      @joanaguimas Nas mensagens de log que postou, não indica nenhum erro. Parece que a aplicação está compilando e rodando, e seu término repentino pode ter vários motivos.
      Você alterou algo no AndroidManifest.xml?
      Neste arquivo as tags "<application android:label=" e "<meta-data android:name="android.app.lib_name" android:value=" estão com o mesmo nome do seu 'project file'?
      Nas configurações do projeto, em 'Build Android APK' está marcado 'Bundle Qt libraries in APK'?

      J 1 Reply Last reply
      0
      • R ReinaldoJr

        @joanaguimas Nas mensagens de log que postou, não indica nenhum erro. Parece que a aplicação está compilando e rodando, e seu término repentino pode ter vários motivos.
        Você alterou algo no AndroidManifest.xml?
        Neste arquivo as tags "<application android:label=" e "<meta-data android:name="android.app.lib_name" android:value=" estão com o mesmo nome do seu 'project file'?
        Nas configurações do projeto, em 'Build Android APK' está marcado 'Bundle Qt libraries in APK'?

        J Offline
        J Offline
        joanaguimas
        wrote on last edited by
        #3

        @ReinaldoJr Pois eu também pensava que as mensagens não transmitiam erro, mas o que é certo é que agora nao consigo transferir nenhuma aplicação que funcione correctamente no telemovel.. como acedo ás configurações do projeto?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          danieltm64
          wrote on last edited by
          #4

          Você mudou a versão do Qt que você estava usando? Qual versão você usa atualmente? Tem como você mostrar o seu código fonte? Tem como você postar o conteúdo do seu arquivo .pro? Talvez você precise recompilar o seu projeto, tente o seguinte: No menu principal, clique em Build > Run qmake e depois clique em Build > Rebuild Project "XYZ" (onde XYZ é o nome do seu projeto), agora tenta rodar de novo.

          Daniel

          1 Reply Last reply
          0
          • D Offline
            D Offline
            danieltm64
            wrote on last edited by
            #5

            Se a minha sugestão anterior não der certo, faça o seguinte: No menu principal, clique em Tools > Options... e depois, na janela de opções, clique em Android na lista a esquerda. Agora tire uma foto desta janela e poste essa foto aqui, talvez a sua configuração do Android está atrapalhada, isso explicaria o fato de que até o Hello World está falhando.

            Daniel

            1 Reply Last reply
            0
            • J Offline
              J Offline
              joanaguimas
              wrote on last edited by
              #6

              A sua sugestão funcionou, mas por vezes ainda aparece o mesmo erro, mas a aplicação corre direito.. o problema era que estava faltando no ficheiro main.cpp..
              Agora já consigo criar os estados, e funcionam bem! :)

              Muito obrigada

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved