小编Arp*_*tel的帖子

java.lang.IllegalAccessError:Method'void android.support.v4.content

我在我的sdk中更新了playservice,我收到了这个错误.我无法访问GCM令牌.在更新sdk之前,我的项目完美运行.

我浪费了整整一天但没有找到任何解决方案.我尝试了这个, 但在这个依赖项中得到了错误com.google.android.gms:play-services-plus:9.0.0

这是我的logcat

Caused by: java.lang.IllegalAccessError: Method 'void android.support.v4.content.ContextCompat.<init>()' is inaccessible to class 'com.google.android.gms.iid.zzd' (declaration of 'com.google.android.gms.iid.zzd' appears in /data/data/com.hwindiapp.passenger/files/instant-run/dex/slice-com.google.android.gms-play-services-iid-9.0.0_b51865a18dbfbfb3651aaa54856c955adf1e354f-classes.dex)
   at com.google.android.gms.iid.zzd.zzeC(Unknown Source)
   at com.google.android.gms.iid.zzd.<init>(Unknown Source)
   at com.google.android.gms.iid.zzd.<init>(Unknown Source)
   at com.google.android.gms.iid.InstanceID.zza(Unknown Source)
   at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source)
   at com.mainProfile.classFiles.RegisterFbLoginResCallBack$registerFBUser.processGCMID_user(RegisterFbLoginResCallBack.java:166)
   at com.mainProfile.classFiles.RegisterFbLoginResCallBack$registerFBUser.doInBackground(RegisterFbLoginResCallBack.java:219)
   at com.mainProfile.classFiles.RegisterFbLoginResCallBack$registerFBUser.doInBackground(RegisterFbLoginResCallBack.java:153)
   at android.os.AsyncTask$2.call(AsyncTask.java:292)
   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
   at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
   at java.lang.Thread.run(Thread.java:818) 
12-01 12:23:59.553 18157-18703/com.hwindiapp.passenger E/ACRA: Not adding buildConfig to log. Class Not found : com.VolleyLibFiles.BuildConfig. Please configure 'buildConfigClass' in your ACRA config
12-01 12:24:00.013 …
Run Code Online (Sandbox Code Playgroud)

android google-play-services build.gradle android-gradle-plugin

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

在android中布局一侧曲线形状

我想创建这样的布局

在此处输入图片说明

我实现了这个我的问题是我不知道如何在布局中获得曲线形状请帮助我。

在此处输入图片说明

这是我的代码

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".activity.HomeActivity">

    <RelativeLayout
        android:id="@+id/relativeLayout1"
        android:layout_width="match_parent"
        android:layout_height="100dp"
        android:background="@color/sky">

    </RelativeLayout>


    <ImageView
        android:id="@+id/image"
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_alignBottom="@id/relativeLayout1"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="-30dp"
        android:src="@mipmap/ic_launcher" />


    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/relativeLayout1">

    </RelativeLayout>
</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)

android android-layout

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

原因:无效的类型代码:android studio gradle 为 1C

我的 Android 工作室工作正常,但更新插件后出现以下错误。我尝试更新 JDK 并重新安装 Android Studio,但仍然面临同样的错误。

这是同步选项卡错误。

Cause: invalid type code: 1C
Run Code Online (Sandbox Code Playgroud)

这是构建选项卡错误

   020-06-04 19:13:09,207 [1650474]  ERROR - nsions.impl.ExtensionPointImpl - Android Studio 4.0  Build #AI-193.6911.18.40.6514223 
2020-06-04 19:13:09,207 [1650474]  ERROR - nsions.impl.ExtensionPointImpl - JDK: 1.8.0_242-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o 
2020-06-04 19:13:09,207 [1650474]  ERROR - nsions.impl.ExtensionPointImpl - OS: Windows 10 
2020-06-04 19:13:09,207 [1650474]  ERROR - nsions.impl.ExtensionPointImpl - Plugin to blame: CSV Plugin version: 2.11.1 
2020-06-04 19:13:09,208 [1650475]  ERROR - nsions.impl.ExtensionPointImpl - While loading class net.seesharpsoft.intellij.plugins.csv.CsvFileTypeOverrider: net/seesharpsoft/intellij/plugins/csv/CsvFileTypeOverrider has …
Run Code Online (Sandbox Code Playgroud)

android gradle android-studio android-gradle-plugin

7
推荐指数
2
解决办法
4524
查看次数

Android:滚动视图,其中包含textInput不滚动

我有一个scrollView包含太多的textInput。一切正常,直到我添加textAlign: 'right'到TextInput样式。之后,ScrollView无法响应滚动。这个问题只是在android中发生的,在iOS中按预期工作。我在Snake.expo中添加了一个简单的代码

  render() {
    let TextInput2 = (
      <TextInput
        style={{
          flex: 1,
          textAlign: 'right',
          height: 50
        }}
        placeholder="placeholder"
      />
    );
    return (
      <ScrollView>
        {TextInput2}
        {TextInput2}
        {TextInput2}
        {TextInput2}
        {TextInput2}
        {TextInput2}
        {TextInput2}
        {TextInput2}
        {TextInput2}
        {TextInput2}
        {TextInput2}
        {TextInput2}
        {TextInput2}
        {TextInput2}
      </ScrollView>
    );
  }
Run Code Online (Sandbox Code Playgroud)

android textinput scrollview react-native

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

通过按钮从一个选项卡视图移动到另一个选项卡视图单击Android ActionBar

我正在使用http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/制作标签栏.

我还有3个选项卡,第二个选项卡视图包含列表视图,第三个选项卡包含设置.
设置包含重新加载按钮.当我点击重新加载按钮时,我想移动到第一个标签.

我怎样才能做到这一点 ?

android buttonclick tabview android-actionbar

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