赞
踩
起初,我也搜索了很多篇博客文章,他们的方法还是没有解决我的问题, 他们的解决方法是, build-->rebuild project, 我告诉你他们的这个方法 是解决as根本没有生成aidl对应的Java文件.在我这里的问题有点不一 样,我生成了aidl对应得Java文件,但是这个Java文件是空得,没有代码得 Java文件,我反复尝试了将近两个小时,都没有解决............................... . . . . . . . .
package com.example.date01;
// Declare any non-default types here with import statements
interface IMediaService {
void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat,
double aDouble, String aString);
void hello();
}
package com.example.date01; // Declare any non-default types here with import statements interface IMediaService { void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, String aString); //开始音乐 void openAudio(int position); //开始播放 void start(); //暂停 void pause(); }
.
.
.
.
.
.
.
.
.
.
不知道这个方法对你们是否有效,我的as版本是3.5
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。