小编har*_*nat的帖子

离线2使用Azure移动应用程序进行脱机数据同步会引发TypeError:无法读取未定义的属性"openDatabase"

我使用visual studio模板创建了ionic 2 app,并试图在Azure Mobile Apps功能中开发离线数据同步.我已经安装了节点"azure-mobile-apps-client模块",并import * as WindowsAzure from 'azure-mobile-apps-client';在app.components.ts中使用,并使用初始化存储 Client = new WindowsAzure.MobileServiceClient("url");但错误显示我为"TypeError:无法读取未定义的属性'openDatabase'".

我还安装了@ ionic-native/sqlite节点模块和cordova-sqlite-storage插件.

请看下面的代码:

import { Component } from '@angular/core';
import { Platform } from 'ionic-angular';
import { NavController } from 'ionic-angular';
//declare var WindowsAzure: any;
import * as WindowsAzure from 'azure-mobile-apps-client';

var mobileAppClient, // Connection to the Azure Mobile App backend
    store,  // Sqlite store to use for offline data sync
    syncContext, // Offline data sync context
    tableName
var useOfflineSync: boolean = …
Run Code Online (Sandbox Code Playgroud)

sqlite cordova azure-mobile-services ionic-framework ionic2

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

Android-Cordova 10.0.1 任务:app:processDebugGoogleServices 失败

我已将 cordova-android 版本从 9.0 升级到 10.0.1,并在使用 - ionic cordova build android 构建 Cordova 应用程序时遇到以下问题

错误:

Task :app:processDebugGoogleServices FAILED
Some problems were found with the configuration of task ':app:processDebugGoogleServices' (type 'GoogleServicesTask').
  - In plugin 'com.google.gms.google-services' type 'com.google.gms.googleservices.GoogleServicesTask' field 'intermediateDir' without corresponding getter has been annotated with @OutputDirectory.

    Reason: Annotations on fields are only used if there's a corresponding getter for the field.

    Possible solutions:
      1. Add a getter for field 'intermediateDir'.
      2. Remove the annotations on 'intermediateDir'.

    Please refer to https://docs.gradle.org/7.1.1/userguide/validation_problems.html#ignored_annotations_on_field …
Run Code Online (Sandbox Code Playgroud)

android cordova google-play-services ionic-framework cordova-plugins

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

如何使用 azure pipeline 生成 .AAB 文件并签署 Android 应用程序包

我想使用 Azure 管道生成 Android 应用程序包 (.aab) 文件,但在生成 Android 应用程序包文件时遇到问题。

我已使用以下 Gradle 任务来生成并签署 .aab 文件。但是,它生成 .APK 文件。我想生成 .aab 文件。

- task: Gradle@2
  inputs:
    gradleWrapperFile: 'gradlew'
    tasks: 'buildRelease'
    publishJUnitResults: false
    javaHomeOption: 'JDKVersion'
    sonarQubeRunAnalysis: false
    spotBugsAnalysis: false
Run Code Online (Sandbox Code Playgroud)

这是脚本,我在其中使用 jarsigner 来签署 .aab 文件:

- task: CmdLine@2
  displayName: 'Signing and aligning AAB file(s) app\build\outputs\bundle\release\app-release.aab'
  inputs:
    script: 'jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 -keystore $(KeyStoreFile.secureFilePath) -storepass $(StorePassword) -keypass $(KeyPassword) $(system.defaultworkingdirectory)/app/build/outputs/bundle/release/app-release.aab $(KeyStoreAlias)'
Run Code Online (Sandbox Code Playgroud)

android azure azure-devops azure-pipelines

4
推荐指数
1
解决办法
1万
查看次数

node:lts-alpine3.14和node:lts-alpine有什么区别?我应该使用哪一个作为节点后端 api?

node:lts-alpine3.14和node:lts-alpine有什么区别?我应该使用哪一个作为节点后端 API?

我想将其中一个图像用于我的 Node 后端 API,其中包含以下内容: Express Mongo

node.js docker

4
推荐指数
1
解决办法
9352
查看次数