小编Sha*_*que的帖子

我如何从2019-03年月中减去一个月

我正在尝试从当前接收的年度月份中减去一个月(2019-03

echo $payroll['month'];
echo $newdate = date("Y-m", strtotime("-1 months",$payroll['month']));
Run Code Online (Sandbox Code Playgroud)

但它通过错误为

2019-03

遇到PHP错误

严重程度:注意

消息:遇到格式不正确的数值

我想要2019-03减去一个月,所以我会得到2019-02

php codeigniter date

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

每当我启动新的Android工作室项目时,都会发生此错误

每次当我开始一个新项目时,这个错误发生了请任何人,帮助我......安卓工作室里有什么东西丢失了

在此输入图像描述

content_main.xml

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:context="com.shareque.myapplication.MainActivity"
    tools:showIn="@layout/app_bar_main">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</android.support.constraint.ConstraintLayout>
Run Code Online (Sandbox Code Playgroud)

信息:Gradle任务[clean,:app:generateDebugSources,:app:mockableAndroidJar,:app:prepareDebugUnitTestDependencies,:app:generateDebugAndroidTestSources] E:\ myapps\BetaApps\Digitalworldapp\app\src\main\res\layout\content_main.xml错误:(15,49)不允许使用字符串类型(在'layout_constraintBottom_toBottomOf'中,值为'parent').错误:(16,75)不允许使用字符串类型(在'layout_constraintLeft_toLeftOf'中,值为'parent').错误:(17,47)不允许使用字符串类型(在'layout_constraintRight_toRightOf'中,值为'parent').错误:(18,43)不允许字符串类型(在'layout_constraintTop_toTopOf',值为'parent').E:\ myapps\BetaApps\Digitalworldapp\app\build\intermediates\res\merged\debug\layout\content_main.xml错误:(15,49)不允许字符串类型(在'layout_constraintBottom_toBottomOf',值为'parent').错误:(16,75)不允许使用字符串类型(在'layout_constraintLeft_toLeftOf'中,值为'parent').错误:(17,47)不允许使用字符串类型(在'layout_constraintRight_toRightOf'中,值为'parent').错误:(18,43)不允许字符串类型(在'layout_constraintTop_toTopOf',值为'parent').错误:任务':app:processDebugResources'的执行失败.

com.android.ide.common.process.ProcessException:无法执行aapt信息:BUILD FAILED信息:总时间:7.672秒信息:9错误信息:0警告信息:在控制台中查看完整输出

android android-layout android-studio

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