做了一些away3D(4.1.6)+Flash cc,项目比较大,面数多达2000万个,发现电脑还有跑20多帧,可见away3d表现确实相当不错。想把这些东西放到手机上来看,却发现总是白屏,网上搜索了一下,也没人解决这个问题,Yahoo搜英文站(google不能用了)也没找到解决方案。这时试着用了一下Flash的调试功能(移动设备选项),发现有一个报错,经过一番分析和尝试,找到如下解决方法:本帖隐藏的内容在*.fla所在文件夹中找到同名的*-app.xml,打...
1、TextView singleLine废弃 解决方法:android:ellipsize="end"android:lines="1"加上后,超出限制显示三个点 原文:https://www.cnblogs.com/guochangxin/p/11539708.html
问题概述:在新建Android程序的时候出现以下错误:找不到 \android-sdk-windows\tools\lib\proguard.cfg文件 原因:SDK不完整。 解决方法:方法一可在 \android-sdk-windows\tools\lib\目录下新建一个proguard.cfg文件然后添下以下内容: proguard.cfg-optimizationpasses 5-dontusemixedcaseclassnames-dontskipnonpubliclibraryclasses-dontpreverify-verbose-optimizations !code/simplification/arithmetic,!field/*,!class/me...
由于某项需求,把JDK版本从JDK6升级到了JDK7;但是签名APK之后出现了INSTALL_PARSE_FAILED_NO_CERTIFICATES的错误;解决方法:在签名时,添加参数 -digestalg SHA1 -sigalg MD5withRSAjarsigner -digestalg SHA1 -sigalg MD5withRSA -keystore $keystore -storepass $storepass -signedjar $signed_apk $unsign_apk $alias_name $alias_pwdView CodeOK,问题解决。。 参考资料: [1]http://androiddevelopertutorial.com/fixing...
1.Description Resource Path Location Type Unable to resolve target ‘android-19解决:打开project.properties,修改对应版本号 2.Description Resource Path Location TypeAndroidManifest.xml file missing! SoapTest Unknown Android Packaging Problem解决:修改问题1后出现,重启Eclipse恢复正常原文:http://www.cnblogs.com/punkrocker/p/4066238.html
1、DownLoading the Support Libraries 1)Start the Android SDK Manager. 2)In the SDK Manager window, scroll to the end of the Packages list, find theExtras folder and, if necessary, expand to show its contents. 3)Select the Android Support Library item. 4)Click the Install Packages... buttonAfter downloading, the tool installs the Support Library files to your existing Android SDK di...
在 ubuntu 下编译 android 找不到头文件问题解决在 ubuntu 下编译 android 的时候, 发现编译错误, 有些头文件找不到, 如:
致命错误: alsa/asoundlib.h: 没有那个文件或目录网上搜索了一下, 原因是某些库没安装导致。
可以使用 apt-file 查看该头文件在什么库中, 找到相应的库, 安装即可。
安装 apt-file :
sudo apt-get install apt-file
查找头文件:
apt-file search 头文件, 如:
apt-file search alsa/asoundlib.h
找...
最近项目终于要上线了,于是准备对App进行混淆和加固, 但项目引入的开源库有点多,混淆时报了一堆错误,在参考了很多资料后,在前人基础上整理了一个常用开源库proguard rules的列表,以后就不用再次折腾了项目git地址: https://github.com/offbye/Android-ProGuardRules参考了 http://mjiayou.com/2015/06/24/third-proguard-rules/版权声明:本文为博主原创文章,转载请保留出处http://blog.csdn.net/offbye原文:http://blog.c...
转:https://www.cnblogs.com/ldq2016/p/6245987.html在项目中切换Fragment,一直都是用replace()方法来替换Fragment。但是这样做有一个问题,每次切换的时候Fragment都会重新实列化,重新加载一次数据,这样做会非常消耗性能用用户的流量。官方文档解释说:replace()这个方法只是在上一个Fragment不再需要时采用的简便方法。正确的切换方式是add(),切换时hide(),add()另一个Fragment;再次切换时,只需hide()当前,show()另一个...
开始设置了ANDROID_HOME环境变量后,发现Flutter 识别不了安卓SDK, 使用命令配置发现配置是失败的,貌似是不支持路径里有空格 复制一分SDK到没有空格的路径后,SDK就能识别了,并且设备链接状态也有了 原文:https://www.cnblogs.com/lucktian/p/11819911.html
Error: Gradle: Execution failed for task ‘:mytask’ > A problem occurred starting process ‘command ‘jni/ndk-build.cmd” 这是win7打开android程序出现的问题。解决方法:打开build.gradle,找到“commandLine”这行,把commandLine ‘ndk-build’, ‘-C’, file(‘jni’).absolutePath改为commandLine ‘cmd’, ‘-C’, file(‘jni’).absolutePath。打开android程序出现故障:can’t start Git.解决的方法。file->setti...
不知道为什么保存文件后之前打开一直都OK,就突然打开看到变成乱码了,最后解决了关键:outStream.write(finalContent.getBytes("gbk"));write的时候设置一下:转换格式(UFT-8在android不能用,只能用gbk)!!!我之前试过utf-8,还是乱码,没什么用,就是gbk!从项目里面抽取了这个把String保存为txt到本地的方法:String sdCardDir =Environment.getExternalStorageDirectory().getAbsolutePath();File saveFile = new File(sd...
首先请检查你的WebView是否监听了onKey或者onKeyDown事件 protected class KeyLinstener implements OnKeyListener{@Overridepublic boolean onKey(View v, int keyCode, KeyEvent event) {if ((keyCode == KeyEvent.KEYCODE_BACK)) {if( webview.canGoBack()) {webview.goBack(); }return true; } return false;}}如果有监听,请确认返回的值。必须为false原文:http://www.cnblogs.com/duoyewu/p/4379672.html
现在最新的Android Studio对以前的基于Eclipse ADT的项目的支持已经很好了,一般情况只需要通过File-> Import 导入项目就行了,但有些项目编译时会出现问题,现在把这些问题汇总记录下:NinePatch(.9.png)图片的问题
如果某个图片命名成了.9.png,实际图片并不是Ninepatch格式的,或格式错误,会编译出错,解决办法是按Ninepatch格式修改图片android studio 非法字符: \65279 Error:(1, 10) 错误: 需要class, interface或enum
这...
今天在eclipse里报这个错误:
Android requires compiler compliance level 5.0 or 6.0. Found ‘1.4‘ instead. Please fix project properties
找了一下解决方法:
1. 项目 右键 ->android tools ->Fix Project
2. 假设不能够。检查Project -> Properties->Java Compiler
确认JDK compliance被设置为1.6,而且enable specific seetings.Android requires compiler compliance level 5.0 or 6.0. Found '1.4' i...