NativeScript / NativeScript/android
Fresh app works anywhere, except on Redmi devices!
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C++
- Estrellas
- 563
- Forks
- 144
- Merge medio
- 10 h 46 min
- PR fusionados (30 d)
- 14
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Reproduce una aplicación NativeScript nueva en el Redmi 2 Prime con Android 4.4 y compárela con los dispositivos que funcionan indicados en el informe. Empiece examinando la ruta de llamadas alrededor de las líneas 684, 694, 715 y 816 de Platform.java y el fallo del análisis de JSON; el trabajo estará terminado cuando la aplicación sin modificar se inicie correctamente en el dispositivo afectado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- android
- Área
- mobile
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 30/100