我有一个编译问题。当我想运行我的应用程序时,她不会编译。方法PageAdapter中的错误,所在行:super(fm)
<div *ngIf="!applicationService.isEmbedded" fxLayout="column" fxFill>
<h1 class="page-title">{{ "messages.chronology.title" | translate }}</h1>
<mat-card fxFlex="grow">
<mat-card-content *ngTemplateOutlet="content"></mat-card-content>
</mat-card>
</div>
<ng-container *ngIf="applicationService.isEmbedded">
<ng-container *ngTemplateOutlet="content"></ng-container>
</ng-container>
<ng-template #content>
<div fxLayout="column" fxLayoutGap="15px" fxFill>
<!-- somehow if ngif is directly on form it gets rendered double -->
<div *ngIf="!applicationService.isEmbedded">
<form fxFlex #ngForm>
<div fxLayout="row" fxLayoutGap="5px">
<mat-label fxFlex="12">{{ "messages.chronology.liuid-search-label" | translate }}*</mat-label>
<pam-simple-liuid-selector fxFlex [hideLabel]="true" [singleSelect]="true" (selectionChange)="selectionChange($event)"></pam-simple-liuid-selector>
</div>
<div fxLayout="row" fxLayoutGap="5px">
<mat-label fxFlex="12">{{ "messages.chronology.time-range-label" | translate }}*</mat-label>
<div fxFlex fxLayout="row" fxLayoutGap="10px">
<dx-date-box [(ngModel)]="startDate" type="datetime" name="startDate" placeholder="Start date" width="100%" #startDateInput="ngModel"></dx-date-box>
<dx-date-box [(ngModel)]="endDate" type="datetime" name="endDate" placeholder="End date" width="100%" #endDateInput="ngModel"></dx-date-box>
</div>
</div>
</form>
</div>
<div fxFlex="grow" style="position: relative">
<dx-data-grid>
<!-- dxGrid Column definition removed because it's not needed to solve that problem -->
</dx-data-grid>
</div>
</div>
</ng-template>
当我运行我的应用程序时,她说我:
使用或覆盖已弃用的API。
C:\ Users \ NyCko \ AndroidStudioProjects \ MyNews \ app \ src \ main \ java \ com \ fossourier \ nicolas \ mynews \ Adapters \ PageAdapter.java: 使用或覆盖已弃用的API。 使用-Xlint:deprecation重新编译以获取详细信息。
感谢您的帮助。