0

我从一个流星项目制作了一个移动应用程序。该应用程序在 Android 7 和 8 上运行良好。

但它不适用于Android 9和10。登录页面显示在手机上,但我无法登录。似乎请求没有发送到服务器,点击登录后,加载模式仍然存在。

在此处输入图像描述

我已经在系统上安装了 SDK 29 版。这是我的 mobile-config.js。

App.info({
  id: 'com.marco.android.karname',
  name: 'karname',
  description: 'Debug mode',
  author: 'Matt Development Group',
  email: 'contact@example.com',
  website: 'http://example.com',
  version: "0.0.3"
});

App.icons({
  'android_xxhdpi': 'resources/icons/en-logo.png',
});

App.launchScreens({
  'android_mdpi_portrait': 'resources/icons/sample.png',
});

App.setPreference('BackgroundColor', '0xff0000ff');
App.setPreference('HideKeyboardFormAccessoryBar', true);
App.setPreference('Orientation', 'default');
App.setPreference('Orientation', 'all', 'ios');

App.setPreference('android-targetSdkVersion', '30');
App.setPreference('android-minSdkVersion', '24');

App.appendToConfig(`
  <universal-links>
    <host name="http://192.168.0.66" />
  </universal-links>
`);

这是我的日志:

..
2020-10-07 19:08:03.096 2157-3396/? E/aofp: Phenotype API error. Event # bybz@5dc8807f, EventCode: 12 [CONTEXT service_id=51 ]
    aoeg: 29503
        at aofv.b(:com.google.android.gms@17786022@17.7.86 (040700-256199907):23)
        at aofp.a(:com.google.android.gms@17786022@17.7.86 (040700-256199907):92)
        at aofp.a(:com.google.android.gms@17786022@17.7.86 (040700-256199907):79)
        at aale.run(:com.google.android.gms@17786022@17.7.86 (040700-256199907):19)
        at bkdz.run(:com.google.android.gms@17786022@17.7.86 (040700-256199907):2)
        at squ.b(:com.google.android.gms@17786022@17.7.86 (040700-256199907):37)
        at squ.run(:com.google.android.gms@17786022@17.7.86 (040700-256199907):21)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at swz.run(Unknown Source:7)
        at java.lang.Thread.run(Thread.java:919)
2020-10-07 19:08:03.099 2157-3396/? E/AsyncOperation: serviceID=51, operation=GetCommittedConfigurationOperationCall
    OperationException[Status{statusCode=unknown status code: 29503, resolution=null}]
        at aofp.a(:com.google.android.gms@17786022@17.7.86 (040700-256199907):100)
        at aofp.a(:com.google.android.gms@17786022@17.7.86 (040700-256199907):79)
        at aale.run(:com.google.android.gms@17786022@17.7.86 (040700-256199907):19)
        at bkdz.run(:com.google.android.gms@17786022@17.7.86 (040700-256199907):2)
        at squ.b(:com.google.android.gms@17786022@17.7.86 (040700-256199907):37)
        at squ.run(:com.google.android.gms@17786022@17.7.86 (040700-256199907):21)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at swz.run(Unknown Source:7)
        at java.lang.Thread.run(Thread.java:919)
2020-10-07 19:08:03.100 2157-3786/? E/NetRec: [88] alcj.a: Could not retrieve server token for package com.google.android.apps.gcs
    java.util.concurrent.ExecutionException: rjk: 29503: 
        at avgu.b(:com.google.android.gms@17786022@17.7.86 (040700-256199907):3)
        at avgu.a(:com.google.android.gms@17786022@17.7.86 (040700-256199907):20)
        at alcj.a(:com.google.android.gms@17786022@17.7.86 (040700-256199907):1)
        at alcj.a(:com.google.android.gms@17786022@17.7.86 (040700-256199907):4)
        at alce.getHeaders(:com.google.android.gms@17786022@17.7.86 (040700-256199907):2)
        at com.android.volley.toolbox.HttpClientStack.performRequest(:com.google.android.gms@17786022@17.7.86 (040700-256199907):9)
        at sjg.performRequest(:com.google.android.gms@17786022@17.7.86 (040700-256199907):1)
        at byj.executeRequest(:com.google.android.gms@17786022@17.7.86 (040700-256199907):1)
        at com.android.volley.toolbox.BasicNetwork.performRequest(:com.google.android.gms@17786022@17.7.86 (040700-256199907):5)
        at sjj.performRequest(:com.google.android.gms@17786022@17.7.86 (040700-256199907):13)
        at com.android.volley.NetworkDispatcher.a(:com.google.android.gms@17786022@17.7.86 (040700-256199907):7)
        at com.android.volley.NetworkDispatcher.run(:com.google.android.gms@17786022@17.7.86 (040700-256199907):2)
     Caused by: rjk: 29503: 
        at rpj.a(:com.google.android.gms@17786022@17.7.86 (040700-256199907):4)
        at aodi.b(:com.google.android.gms@17786022@17.7.86 (040700-256199907):2)
        at aofv.a(:com.google.android.gms@17786022@17.7.86 (040700-256199907):6)
        at aale.run(:com.google.android.gms@17786022@17.7.86 (040700-256199907):30)
        at bkdz.run(:com.google.android.gms@17786022@17.7.86 (040700-256199907):2)
        at squ.b(:com.google.android.gms@17786022@17.7.86 (040700-256199907):37)
        at squ.run(:com.google.android.gms@17786022@17.7.86 (040700-256199907):21)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at swz.run(Unknown Source:7)
        at java.lang.Thread.run(Thread.java:919)
2020-10-07 19:08:03.100 2157-3786/? W/NetRec: [88] alcj.a: No server tokens extracted.
2020-10-07 19:08:03.107 12822-12869/com.marco.android.karname D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 1 6
2020-10-07 19:08:03.111 12822-12869/com.marco.android.karname D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 2
2020-10-07 19:08:03.128 12822-12869/com.marco.android.karname D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 1 6
2020-10-07 19:08:03.131 12822-12869/com.marco.android.karname D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 2
..


..
2020-10-07 19:10:58.926 12822-12869/com.marco.android.karname D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 1 6
2020-10-07 19:10:58.933 12822-12869/com.marco.android.karname D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 2
2020-10-07 19:10:58.936 1747-2376/? E/GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8
2020-10-07 19:10:58.936 1747-2376/? E/GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8
2020-10-07 19:10:58.983 12822-12869/com.marco.android.karname D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 1 6
2020-10-07 19:10:58.986 12822-12869/com.marco.android.karname D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 2
..
4

1 回答 1

0

根据这个答案,我在 mobile-config.js 中将 targetSdkVersion 版本从 30 减少到 27。现在它正在工作。

App.setPreference('android-targetSdkVersion', '27');
App.setPreference('android-minSdkVersion', '24');
于 2020-10-07T16:26:27.290 回答