首先必须降低gcc版本: sudo apt-get install gcc-4.4sudo apt-get install g++-4.4sudo rm -rf /usr/bin/gcc /usr/bin/g++sudo ln -s /usr/bin/gcc-4.4 /usr/bin/gccsudo...
分类:
移动开发 时间:
2015-01-28 19:46:57
阅读次数:
820
不同的ItemVeiwType中返回的值必须是从0开始的!!!!!不能自定义值,否则会发生不可预知的情况。即值是从0到ItemViewCount-1。
LayoutParams中设置margin等参数时,是根据外层Layout来决定LayoutParams的类型的.
如果AbsListView的子控件需要设置LayoutParams,比如footerView 等,可以在...
分类:
移动开发 时间:
2015-01-19 23:40:21
阅读次数:
388
1.MainActivity里第一个方法
protectedvoidonCreate(BundlesavedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
findViewById(R.id.Btn01).setOnClickListener(this);
}
如果不加findViewById,下面会按界面上的什么按钮都没反应
2...
分类:
移动开发 时间:
2015-01-16 19:26:46
阅读次数:
183
用到Media Player,遇到几个问题,记一下用法就不说了,使用的时候最好参考一下mediaPlayer的这张图第一个错误是Media Player called in state 8这个是因为在调用start之前没有prepare,因为我是用了mediaPlayer = MediaPlayer.create(context, R.raw.notice);去初始化的播放器,这个接口说明只要成功...
分类:
移动开发 时间:
2015-01-10 22:23:32
阅读次数:
350
1.报错:BUILD FAILEDD:\workspace\ganji\build.xml:144: The following error occurredwhile executing this line:D:\workspace\ganji\build.xml:271: Unable to d...
分类:
移动开发 时间:
2015-01-08 17:46:54
阅读次数:
206
我刚下载并安装了最新的Android SDK,我想创建一个简单的工程学习。
根据向导创建的代码如下
package eu.mauriziopz.gps;
import android.app.Activity;
import android.os.Bundle;
public class ggps extends Activity {
/** Called when the a...
分类:
移动开发 时间:
2014-12-19 12:18:37
阅读次数:
154
犯过的错给自己提个醒
【错误信息】
[2011-01-19 16:39:10 - ApiDemos] WARNING: Application does not specify an API level requirement!
[2011-01-19 16:39:10 - ApiDemos] Device API version is 8 (Android 2.2)
原因:
不影响正...
分类:
移动开发 时间:
2014-12-11 21:01:25
阅读次数:
420
The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the arguments (int, SettingFragment, String)
今天遇到这样一个很奇葩的错误信息,后来查到我导入的包有问题 import android.app....
分类:
移动开发 时间:
2014-12-06 15:31:01
阅读次数:
320
Re-installationfailedduetodifferentapplicationsignatures (2013-04-20 14:27:32)转载▼标签:解决方法问题文件夹目录解决问题分类: Android 我在另外一台机器上刚安装了环境加载我的应用时,运行时,会出现以下内容: 解决的...
分类:
移动开发 时间:
2014-12-04 19:26:58
阅读次数:
307
今天在研究有米广告技术时,第一次编译他们提供的Android示例工程,结果出现如下错误:[2014-11-2911:28:25-com.youmi.android.offerdemo.YoumiOffersAdsDemo]W/ResourceType(15184):BadXMLblock:headersize201ortotalsize0islargerthandatasize0[2014-11-2911:28:25-com.youmi..
分类:
移动开发 时间:
2014-11-30 17:20:41
阅读次数:
1064