小编Bor*_*ron的帖子

问题:需要登录凭据才能进行应用程序审核

我已经尝试发布应用程序近一个月了。但我总是收到谷歌的拒绝,说应用程序审核需要凭据。我使用 Google Sign In 作为唯一的登录方法,我已经在Play 控制台的应用程序访问模块中描述了所有用户都需要使用其 Google 帐户登录。

编辑:我创建了一个测试 Gmail 帐户,并通过应用程序访问模块提供了说明和密码,但仍然面临同样的问题。

PS疯狂的是,我所有其他发布的应用程序都使用 Google 登录,并且以前从未遇到过此问题。谷歌的这种不一致有时会令人伤脑筋

google-developers-console google-play-console

7
推荐指数
1
解决办法
4031
查看次数

文字转语音 (TTS) 延迟 3 秒才能说出文字

我在我的 android 应用程序中使用 TextToSpeak 功能,并意识到它在说出实际单词之前需要一些延迟。

onCreate(){
 textToSpeech = new TextToSpeech(getApplicationContext(), new TextToSpeech.OnInitListener() {
        @Override
        public void onInit(int status) {
            if (status != TextToSpeech.ERROR) {
                textToSpeech.setLanguage(Locale.UK);
            }
        }
    });

 textToSpeech.speak("Hello World", TextToSpeech.QUEUE_FLUSH, null, null);
 performAction();
}

performAction(){…}
Run Code Online (Sandbox Code Playgroud)

如您所见,我在使用 TTS .speak() 方法后立即调用 performAction 方法,但 3 秒延迟会导致一些不准确。

我怎样才能触发 performAction 方法来立即调用这个词。

java android text-to-speech

5
推荐指数
1
解决办法
642
查看次数

使用 Android Studio 生成发布 SHA1 证书

我正在使用 Android Studio 帮助我构建发布 SHA1 证书,方法是转到

  • 右上角的 Gradle 设置
  • 使用齿轮图标导航到signingReport
  • 右键单击然后运行它

它会生成一个调试 SHA1 证书,如下所示(变体):

在此处输入图片说明

如何在不使用命令行的情况下使用相同的工具生成发布证书

android sha1 firebase android-studio

5
推荐指数
1
解决办法
3697
查看次数

NodeJS - response.send()不是函数

我有一个简单的nodejs应用程序,如果网址无效,我正在尝试发送"找不到页面"消息.

const http = require("http");
const port = 4098;

let app = http.createServer((request, response) => {
    let url = request.url;

    switch (url) {
      case "/":
         getStaticFile(response, "./public/home.html");
      break;
      case "/contact":
         getStaticFile(response, "./public/contact.html");
      break;
      default:
         response.send("Oops...Page Not Found!");
      break;
     }
});

function getStaticFile(response, pathToFile) {
  fs.readFile(pathToFile, function(error, data) {
   if (error) {
      response.writeHead("500", { "Content-Type": "text/plain" });
      response.end("500 - Internal Server Error");
    }
   if (data) {
      response.writeHead("200", { "Content-Type": "text/html" });
      response.end(data);
    }
   });
}

app.listen(port, () => {
  !console.log(`Listening to …
Run Code Online (Sandbox Code Playgroud)

javascript node.js

0
推荐指数
1
解决办法
434
查看次数