美文网首页
Android-日常问题汇总

Android-日常问题汇总

作者: 十八人言 | 来源:发表于2018-12-18 04:18 被阅读0次

1.小米手机显示安卓失败之类

开发者选项允许usb安卓

2.java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

https://bbs.csdn.net/topics/392342785?page=1

http://bbs.bugcode.cn/t/8920

3.This Gradle plugin requires Studio 3.0 minimum

https://blog.csdn.net/shenggaofei/article/details/78165940

4.Could not find com.android.tools.build:gradle:3.0.0.

https://blog.csdn.net/zhouxianling233/article/details/78359217

5.Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'.

https://blog.csdn.net/p576518762/article/details/78356137

6.微信登录 支付分享

https://www.cnblogs.com/yishaochu/p/7531638.html

微信登录.分享

https://www.cnblogs.com/shen-hua/p/6343736.html

7.Error:Failed to resolve: com.android.support:appcompat-v7:27.+

https://blog.csdn.net/qq_31344665/article/details/79283979

8.解决Android Studio Gradle Build Running慢的问题

https://www.cnblogs.com/oukunqing/p/5864671.html?utm_source=itdadao&utm_medium=referral

https://blog.csdn.net/dabaoonline/article/details/50550423

https://blog.csdn.net/a549742320/article/details/52525257

9.Error:The module 'app' is an Android project without build variants, and cannot be built.

Please fix the module's configuration in the build.gradle file and sync the project again.

https://stackoverflow.com/questions/49834961/the-module-app-is-an-android-project-without-build-variants

项目最后用 gradle 文件点击的运行

10.unable to access android sdk add-on list的解决方法

https://blog.csdn.net/u014471160/article/details/78505653

The specified Android SDK Build Tools version (27.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.2.

Android SDK Build Tools 27.0.3 will be used.

11.Android studio 提示 module not specified

Build项目还是不行,那么就重启了as( File->Invalidate Caches/Restart)

12Android Studio修改字体大小

https://www.cnblogs.com/diyishijian/p/6824328.html

https://blog.csdn.net/niaonao/article/details/51378596

13.> Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.

https://blog.csdn.net/sky_castle/article/details/53606929

buid 配置 java

14.Error:Could not find com.android.tools.build:gradle:3.1.2.

build 配置 少了 goole

15.android-apt plugin is incompatible with the Android Gradle plugin.  Please use 'annotationProcessor' configuration instead.

https://blog.csdn.net/sxk874890728/article/details/78367726

16.如何更改android Studio logcat字体大小?

https://blog.csdn.net/ykttt1/article/details/46291029

17.Error:Jack is required to support java 8 language features. Either enable Jack or remove sourceCompatibility JavaVersion.VERSION_1_8.

https://blog.csdn.net/fullstackdeveloper/article/details/52701707

18.The version of Gradle you are using (3.3) does not support the forTasks() method on BuildActionExecuter. Support for this is available in Gradle 3.5 and all later 

https://blog.csdn.net/baidu_38291700/article/details/80263294

19. org.gradle.internal.resource.transport.http.HttpRequestException: Could not HEAD

转 https://blog.csdn.net/yuanxw44/article/details/80061381

google()

20.Annotation processors must be explicitly declared now.  The following dependencies on the compile cl (7.0.1)

 https://blog.csdn.net/keep_holding_on/article/details/76188657

javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }

21.design editor is unavailable until a successful build

转 https://blog.csdn.net/zhs966877/article/details/78466884?locationNum=6&fps=1

Rebuild Project

22.studio 中 新文件直接提交svn项目中

转 https://blog.csdn.net/acmen99/article/details/76825426

23.listview 数据回调监听

https://blog.csdn.net/belyxiong/article/details/46819671

24 动画实现的overridePendingTransition 注意点

 https://blog.csdn.net/u010015108/article/details/49616003

25 Call requires API level 24 (current min is 15): java.util.stream.Stream#map less... (Ctrl+F1)

This check scans through all the Android API calls in the application and warns about any calls that are not available on all versions targeted by this application (according to its minimum SDK attribute in the manifest).  If you really want to use this API and don't need to support older devices just set the minSdkVersion in your build.gradle or AndroidManifest.xml files.  If your code is deliberately accessing newer APIs, and you have ensured (e.g. with conditional execution) that this code will only ever be called on a supported platform, then you can annotate your class or method with the @TargetApi (忽略)

25.决“com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536”问题

转 https://www.cnblogs.com/yeahgis/p/4660873.html

26.Failed to find byte code for java/util/function/Predicate

转 https://blog.csdn.net/qq_31433709/article/details/80969761

27,oppo 极光推送收不到

 https://community.jiguang.cn/t/topic/29762

28无法访问https://developer.android.com相应的网站

转 https://blog.csdn.net/saywhat_sayhello/article/details/78989077

29.Could not find method google() for arguments [] on repository container of type

gradle 的版本配置太低

distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

classpath 'com.android.tools.build:gradle:3.1.4'

30.import io.reactivex.android.schedulers.AndroidSchedulers 类找不到

io.reactivex.rxjava2:rxandroid:2.0.2版本 改成 2.0.1 然后build

31.dialog dismiss failed : java.lang.IllegalArgumentException: no dialog with id 1 was ever shown via Activity#showDialog

app 中 build.grale 配置 multiDexEnabled true 配置

加 apllication中 代码

@Override

protected void attachBaseContext(Context base) {

super.attachBaseContext(base);

MultiDex.install(base);

}

32 极光推送 web推送 可以,api推送不可以

ok了  web 自定义推送 可以成功。 api 推送不成功。 要debug 模式true下

33. studio 占用 c盘太大的问题 可选的

C:\Users\Administrator\AppData\Local\Temp  删除  处理( 可能导致studio 所有项目的结构发生变化)

34.提示安装包已损坏

1.点击应用里。。所有用户卸载。

2.我的AS是3.2版本的,gradle版本是4.1的,前面自己写了demo,签名打包之后用应用宝安装,提示包已损坏,请重新下载。。。使用adb安装命令是可以正常安装,本地运行也是可以正常运行,但是用应用宝安装就出问题,尝试了各种网上说的方法,还是没有效果,最后看到一个帖子,里面提到“把build tools 版本改成27.0.2就行了”,我就试了一下,确实可行,这里只要修改在27以上就OK了,我的是27.0.3,在这里记录一下,下次碰到这个问题,就不怕忘记怎么处理了。

https://blog.csdn.net/chenhan0719/article/details/79738821 

35.GPBI: {"kind":"error","text":"error: resource android:attr/ttcIndex not found.","sources":[{"file":"C:\\Users\\Administrator\\.gradle\\caches\\transforms-1\\files-1.1\\support-compat-28.0.0.aar\\6010d9958d2330d28494eb2d1ce90f89\\res\\values\\values.xml","position":{"startLine":132,"startColumn":4,"startOffset":7725,"endColumn":69,"endOffset":7790}}],"original":"","tool":"AAPT"}

rxandroidVersion = "2.0.1"   2.0.2 改成2.0.1

还有 support  配置没有不对

36.这个问题是由于操作 33导致。studio project structure 目录结构发生变化

因为c盘空间不够啊 。按33操作导致。studio 有关插件失效 。

相关文章

  • Android-日常问题汇总

    1.小米手机显示安卓失败之类 开发者选项允许usb安卓 2.java.lang.RuntimeException:...

  • Android-日常问题汇总

    小米手机显示安卓失败之类开发者选项允许usb安卓 java.lang.RuntimeException: java...

  • RN日常问题汇总

    1.CFBundleIdentifier", Does Not ExistCommand failed: /usr...

  • Android Studio APP红叉

    点击 tools ->Android->sync project with gradles files.解决这个问题

  • mysql日常使用问题汇总

    在使用mysql的过程中会遇到各种各样的小问题,本文主要记录下这些问题及我自己的实践经验,本文会不定时更新。 No...

  • 网络维护日常问题汇总

    第一个问题网页打不开,电脑右下角网络图标为 , 电脑右下角网络图标为 解决方案:步骤阅读 第二个问题,打印机安装失...

  • ROC-AUC 曲线以及PRC曲线

    目录:机器学习常见面试问题汇总问题汇总(1):逻辑回归问题汇总(2):支持向量机问题汇总(3):树模型问题汇总(4...

  • cocoapods库

    pods日常问题汇总 部分库不能install, 使用open .cocoapods/repos排查库对应版本号S...

  • Android Studio 视图结构

    1、Tools->Android->Layout Inspector2、Tools->Android->Andro...

  • 问题汇总(5):神经网络

    这篇应当也是很重要的把~ 目录:机器学习常见面试问题汇总问题汇总(1):逻辑回归问题汇总(2):支持向量机问题汇总...

网友评论

      本文标题:Android-日常问题汇总

      本文链接:https://www.haomeiwen.com/subject/yftkkqtx.html