NativeScript / NativeScript/android

Fresh app works anywhere, except on Redmi devices!

Ouverte
#404 47 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

bug
Langage dominant
C++
Étoiles
563
Forks
144
Merge moyen
10 h 46 min
PR mergées (30 j)
14

Description

From @calebeaires on March 25, 2016 14:50

Fresh Nativescript app (with no modification) stop working on Xiaomi Redimi 2 Prime smartphones. I have tested the same app on Sansung, Nexus, Genymotion and Android emulator. Everting goes well, except on Redimi 2. Here are the reporting log:

W/dalvikvm(24260):              in Lcom/tns/Platform;.callJSMethodNative:(ILjava/lang/String;IZ[Ljava/lang/Object;)Ljava/lang/Object; (CallVoidMethodA)
I/dalvikvm(24260):   at com.tns.Platform.callJSMethodNative(Native Method)
I/dalvikvm(24260):   at com.tns.Platform.dispatchCallJSMethodNative(Platform.java:816)
I/dalvikvm(24260):   at com.tns.Platform.callJSMethod(Platform.java:715)
I/dalvikvm(24260):   at com.tns.Platform.callJSMethod(Platform.java:694)
I/dalvikvm(24260):   at com.tns.Platform.callJSMethod(Platform.java:684)
W/ErrorReport(  950): org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
W/ErrorReport(  950):   at org.json.JSON.typeMismatch(JSON.java:111)
W/ErrorReport(  950):   at org.json.JSONObject.<init>(JSONObject.java:159)
W/ErrorReport(  950):   at org.json.JSONObject.<init>(JSONObject.java:172)

Redimi 2: Android 4.4
NativesScript 1.7.1

Copied from original issue: NativeScript/NativeScript#1851

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Reproduisez une application NativeScript vierge sur le Redmi 2 Prime sous Android 4.4 et comparez-la aux appareils fonctionnels répertoriés dans le rapport. Commencez par examiner le chemin d’appel autour des lignes 684, 694, 715 et 816 de Platform.java, ainsi que l’échec de l’analyse JSON ; le travail est terminé lorsque l’application non modifiée démarre correctement sur l’appareil concerné.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
android
Domaine
mobile
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
30/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.