更新app not responding 后我运行后得到的依赖项,我在logcat中收到此错误
E/MPlugin:不支持的类:com.mediatek.common.telephony.IOnlyOwnerSimSupport E/MediaPlayer:应该已经设置了字幕控制器
我的依赖:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.google.android.gms:play-services:10.2.0'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.android.support:multidex:1.0.1'
compile "com.android.support:support-v4:25.2.0"
compile 'com.android.support:design:25.2.0'
compile 'com.google.maps:google-maps-services:0.1.17'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.6'
}
Run Code Online (Sandbox Code Playgroud) 尝试复制 editText 中的文本时出现此错误:
Exception java.lang.NumberFormatException: Invalid int: "res/drawable/edit_text_material.xml"
java.lang.Integer.invalidInt (Integer.java:138)
java.lang.Integer.parse (Integer.java:410)
java.lang.Integer.parseInt (Integer.java:367)
com.android.internal.util.XmlUtils.convertValueToInt (XmlUtils.java:133)
android.content.res.TypedArray.getInt (TypedArray.java:357)
android.view.animation.Animation.<init> (Animation.java:248)
android.view.animation.AnimationSet.<init> (AnimationSet.java:81)
android.view.animation.AnimationUtils.createAnimationFromXml (AnimationUtils.java:117)
android.view.animation.AnimationUtils.createAnimationFromXml (AnimationUtils.java:95)
android.view.animation.AnimationUtils.loadAnimation (AnimationUtils.java:76)
android.widget.Editor$SelectionPopupWindow.createAnimations (Editor.java:4086)
android.widget.Editor$ActionPinnedPopupWindow.<init> (Editor.java:2543)
android.widget.Editor$ActionPopupWindow.<init> (Editor.java:3577)
android.widget.Editor$SelectionPopupWindow.<init> (Editor.java:4074)
android.widget.Editor$SelectionHandleView.getActionPopupWindow (Editor.java:5337)
android.widget.Editor$SelectionModifierCursorController.show (Editor.java:5305)
android.widget.Editor.startSelectionActionMode (Editor.java:1715)
android.widget.Editor.performLongClick (Editor.java:1020)
android.app.ActivityThread.main (ActivityThread.java:5438)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:738)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:628)
Run Code Online (Sandbox Code Playgroud)
这是我的布局:
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:textColorHint="#565d66">
<EditText
android:id="@+id/userEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/registration.hint.user"
android:textColor="#565d66"
android:theme="@style/Custom.EditText" />
</android.support.design.widget.TextInputLayout>
// this is the theme i'm using in editText:
<style name="Custom.EditText" parent="Base.Widget.AppCompat.EditText">
<item …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用twilio php api.
这是我的代码:
<?php
$sid = "xxxxxx";
$token = "xxxxxxx";
$phone=$_POST["phone"];
$code=$_POST["code"];
$client = new Twilio\Rest\Client($sid, $token);
$message = $client->messages->create(
$phone,
array(
'from' => 'xxxxxxx',
'body' => $code
));
Run Code Online (Sandbox Code Playgroud)
它给了我这个错误:
致命错误:第9行的/home/vhosts/xxxx.xxxx.com/twilio/sms.php中找不到"Twilio\Rest\Client"类
我也尝试过这段代码但没有用:
<?php
$sid = "xxxxxxx";
$token = "xxxxxxxx";
require_once "Twilio/autoload.php";
use Twilio\Rest\Client;
$phone=$_POST["phone"];
$code=$_POST["code"];
$client = new Client($sid, $token);
$message = $client->messages->create(
$phone,
array(
'from' => 'xxxxx',
'body' => $code
));
Run Code Online (Sandbox Code Playgroud)
它给了我这个错误:
致命错误:require():无法打开所需的'/home/vhosts/xxxx.xxxxx.com/twilio/Twilio/Version.php'(include_path ='.:/ usr/share/pear:/ usr/share/php' )在第140行的/home/vhosts/xxxx.xxxx.com/twilio/Twilio/autoload.php中