小编use*_*760的帖子

Android Studio 2.2 Google Play服务同步错误

我有更新到android studio 2.2

我开始了一个新项目,包括在内

compile 'com.google.android.gms:play-services-vision:9.4.0+'
Run Code Online (Sandbox Code Playgroud)

在我的依赖中.

我正在启动gradle sync时收到此错误.

信息:Gradle任务[:app:generateDebugSources,:app:generateDebugAndroidTestSources,:app:mockableAndroidJar,:app:prepareDebugUnitTestDependencies]错误:com.android.builder.internal.aapt.AaptException:无法处理文件D:\ Android \克隆的应用程序\ Android的视觉大师\ Android的视觉大师\ visionSamples \条码阅读器\程序\编译\ \中间体爆炸-AAR\com.google.android.gms \播放服务基地\ 9.4.0 \水库\绘制-xhdpi-v4\common_google_signin_btn_text_dark_pressed.9.png到D:\ Android \克隆的应用程序\ android-vision-master\android-vision-master\visionSamples\barcode-reader\app\build\intermediates\res\merged\debug\drawable -xhdpi-v4\common_google_signin_btn_text_dark_pressed.9.png错误:任务':app:mergeDebugResources'的执行失败.

错误:com.android.builder.internal.aapt.AaptException:无法处理文件D:\ Android \克隆的应用程序\ android-vision-master\android-vision-master\visionSamples\barcode-reader\app\build\intermediates \爆炸-aar\com.google.android.gms\play-services-base\9.4.0\res\drawable-xhdpi-v4\common_google_signin_btn_text_dark_pressed.9.png到D:\ Android \克隆的应用\ android-vision-master\android-vision-master\visionSamples\barcode-reader\app\build\intermediates\res\merged\debug\drawable-xhdpi-v4\common_google_signin_btn_text_dark_pressed.9.png信息:BUILD FAILED信息:总时间:2.132秒信息:2错误信息:0警告信息:在控制台中查看完整输出

android google-play-services android-studio android-gradle-plugin

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

Android Retrofit AES加密/解密POST和响应

我正在使用Retrofit 2.0

我想加密我的@body示例用户对象

@POST("users/new")
Call<User> createUser(@Body User newUser);
Run Code Online (Sandbox Code Playgroud)

然后解密响应.

最好的方法是什么?

encryption android aes retrofit retrofit2

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

NestedScrollview和ConstraintLayout可以一起工作吗?

我正在尝试新的ConstraintLayout,它非常酷而且简单.我试图将它应用于NestedScrollview里面的坐标布局,其中ConstraintLayout是父坐标NestedScrollView.

但它不起作用,所有观点都垂直崩溃.我怎么解决这个问题?

<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout 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">

    <android.support.design.widget.AppBarLayout
        android:id="@+id/appbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize">

        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize" />

    </android.support.design.widget.AppBarLayout>

    <android.support.v4.widget.NestedScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_behavior="android.support.design.widget.AppBarLayout$ScrollingViewBehavior">

        <android.support.constraint.ConstraintLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <Button
                android:text="Button"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/button"
                android:layout_marginStart="16dp"
                app:layout_constraintLeft_toLeftOf="parent"
                android:layout_marginLeft="16dp"
                android:layout_marginTop="16dp"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintRight_toLeftOf="@+id/button2"
                android:layout_marginEnd="8dp"
                android:layout_marginRight="8dp" />

            <TextView
                android:text="TextView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/textView2"
                android:layout_marginTop="16dp"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintBottom_toBottomOf="parent"
                android:layout_marginBottom="16dp"
                android:layout_marginStart="16dp"
                app:layout_constraintLeft_toLeftOf="parent"
                android:layout_marginLeft="16dp"
                android:layout_marginEnd="16dp"
                app:layout_constraintRight_toRightOf="parent"
                android:layout_marginRight="16dp" />

            <Button
                android:text="Button"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/button2"
                app:layout_constraintTop_toTopOf="@+id/textView2"
                app:layout_constraintBottom_toBottomOf="@+id/textView2"
                android:layout_marginEnd="16dp"
                app:layout_constraintRight_toRightOf="parent"
                android:layout_marginRight="16dp" />

            <android.support.constraint.Guideline
                android:layout_width="411dp"
                android:layout_height="0dp"
                android:id="@+id/guideline" …
Run Code Online (Sandbox Code Playgroud)

android android-layout android-studio android-constraintlayout

6
推荐指数
1
解决办法
2702
查看次数

在Google地图v2中为标记的旋转设置动画

我正在使用谷歌地图v2.我在地图上有一个标记,这个标记每次都会改变旋转.我想动画制作者的旋转以平滑旋转.任何人都可以帮忙

android google-maps google-maps-markers android-animation

4
推荐指数
2
解决办法
8759
查看次数