에드몹 달려다가 보니 오류가 나네요 ㅠㅠ
로그켓을 첨부하겠습니다..


──────────────────────
jar는 설정했습니다..
레이아웃이 어디가 잘못된지 모르겠네요 ㅠㅠㅠ 여러가지 빼고 바꿔봐도 같은오류라..
관련소스 아래에 첨부합니다..
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="4"
>
<ImageView
android:id="@+id/imageView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/logo_app" />
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="4"
>
<androidpark.archeagetimer.CoverFlow
android:id="@+id/coverflow"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>/
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="4"
>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
>
<ImageButton
android:id="@+id/imageButton1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/banner"
android:background="#000000" />
<com.google.ads.AdView
android:id="@+id/ADMobAD"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
ads:adSize="BANNER"
ads:adUnitId="a1505dc12e80a54"
ads:loadAdOnCreate="true" >
</com.google.ads.AdView>
</LinearLayout>
</LinearLayout>
</LinearLayout>
MainActivity.java
package androidpark.archeagetimer;
import java.io.FileInputStream;
import com.google.ads.AdRequest;
import com.google.ads.AdView;
import com.nbpcorp.mobilead.sdk.MobileAdView;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.Gallery;
import android.widget.ImageView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;
public class MainActivity extends Activity {
/**
* Spacing of this Gallery
*/
public static int spacing = -450; //객체간 간격
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.activity_main);
AdView adview = (AdView)findViewById(R.id.ADMobAD);
AdRequest re = new AdRequest();
re.setTesting(true);
adview.loadAd(re);
Button Point_lockon = (Button) findViewById(R.id.howdo);
Point_lockon.setOnClickListener(new OnClickListener(){
public void onClick(View v){
}
});
Button Point_lockon2 = (Button) findViewById(R.id.developer);
Point_lockon2.setOnClickListener(new OnClickListener(){
public void onClick(View v){
AlertDialog.Builder alertDialog = new AlertDialog.Builder(MainActivity.this);
alertDialog.setPositiveButton("확인", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
Log.i(getResources().getString(R.string.app_name), "OK");
}
});
alertDialog.setTitle("개발자 소개");
alertDialog.setIcon(android.R.drawable.sym_def_app_icon);
alertDialog.setMessage("아키ID : 짝패\n서버 : 에노아\n원정대 : <좌측상단>\n\n NickName : Android.Park\n(주)KOPS연구소 박현우\nhttp://blog.naver.com/mong_phw\n\n\n버그신고, 건의제안 등은\n아래 메일로 보내주세요..^^\ndonomong@gmail.com");
alertDialog.show();
}
});
CoverFlow coverFlow = (CoverFlow) findViewById(R.id.coverflow);
ImageAdapter coverImageAdapter = new ImageAdapter(this);
coverFlow.setAdapter(coverImageAdapter);
AlertDialog.Builder alertDialog = new AlertDialog.Builder(MainActivity.this);
alertDialog.setPositiveButton("확인", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
Log.i(getResources().getString(R.string.app_name), "OK");
}
});
alertDialog.setTitle("공 지 사 항");
alertDialog.setIcon(R.drawable.ic_launcher);
alertDialog.setMessage("▶업데이트 공지!\n안녕하세요!짝패입니다.\n메뉴가 새로 추가되었습니다!\n하지만...타이머 기능만 현재 작업중입니다!ㅠ.ㅠ\n\n조금만 기다려주세요!^^");
alertDialog.show();
coverFlow.setSpacing(spacing);
coverFlow.setSelection(2, true);
coverFlow.setAnimationDuration(3000); //전환 속도
coverFlow.setSelection(4);
Gallery gallery = (Gallery)findViewById(R.id.coverflow);
gallery.setAdapter(new ImageAdapter(this));
gallery.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View v, int position, long id) { //탭 선택시
switch(position)
{
case 0 :
break;
case 1 :
Toast.makeText(MainActivity.this, "화살표를 옆으로 끌어보세요~^^", Toast.LENGTH_SHORT).show();
break;
case 2 :
Intent intent = new Intent(MainActivity.this, MainMenu.class); // 두번째 액티비티를 실행하기 위한 인텐트
startActivity(intent); // 두번째 액티비티를 실행합니다.
break;
case 3 :
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://androidpark.tnaru.com")));
break;
case 4 :
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://board.archeage.com/wikis")));
break;
case 5 :
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://board.archeage.com/wikis")));
break;
}
}
});
}
public class ImageAdapter extends BaseAdapter {
int itemBackground;
private Context mContext;
private FileInputStream outstream;
private Integer[] mImageIds = { R.drawable.arrow1, R.drawable.menu1,
R.drawable.menu2, R.drawable.menu3, R.drawable.arrow2 };
private ImageView[] mImages;
public ImageAdapter(Context c) {
mContext = c;
mImages = new ImageView[mImageIds.length];
}
public int getCount() {
return mImageIds.length;
}
public Object getItem(int position) {
return position;
}
public long getItemId(int position) {
return position;
}
public View getView(int position, View convertView, ViewGroup parent) {
ImageView i = new ImageView(mContext);
i.setImageResource(mImageIds[position]);
i.setLayoutParams(new CoverFlow.LayoutParams(600, 250)); //버튼크기
i.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
BitmapDrawable drawable = (BitmapDrawable) i.getDrawable();
drawable.setAntiAlias(true);
return i;
}
public float getScale(boolean focused, int offset) {
return Math.max(0, 1.0f / (float) Math.pow(2, Math.abs(offset)));
}
}
}




레이아웃에서 에러나는거 같은데요.... jar파일 설정하셨는지요...