1
내가 가지고있는 매니페스트 다음실행 보풀이 매니페스트 오류를 제공
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.example.mfc"
android:versionCode="1"
android:versionName="1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<application android:label="@string/app_name">
<activity android:name=".Home" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
을하지만, 보풀을 실행할 때, 내가 경고 '정확성'을 얻을 : '를 com.example.mfc.Home가에 등록되어 있지 않은 매니페스트
문제 : 매니페스트 아이디에 등록되어 활동, 서비스 및 정보 제공자 것을 보장 : 사용
활동, 서비스 및 콘텐츠 제공 업체가의 AndroidManifest.xml 파일에 등록해야한다
을 등록하고, 태그입니다.활동이 다른 "실제"활동에 의해 서브 클래 싱 (subclass) 될 단순한 상위 클래스 인 경우이를 추상 클래스로 만드십시오. 그것은하다 니
[http://developer.android.com/guide/topics/manifest/manifest-intro.html]
이고, I는 클래스 홈 연장 활동 가지고
package com.example.mfc;
import java.io.IOException;
import android.os.Bundle;
import android.app.Activity;
//import android.content.Intent;
import android.view.Menu;
import android.view.View;
//import android.view.View;
//import android.support.v7.app.ActionBar;
import static us.monoid.web.Resty.*;
import us.monoid.web.Resty;
//import us.monoid.web.Resty.*;
import android.app.AlertDialog;
import android.content.DialogInterface;
public class Home extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.home, menu);
return true;
}
public void Register(View arg0) {
try{
new Resty().json("http://app.zkn-web.com/register");
/* new AlertDialog.Builder(this)
.setTitle("Invalid email")
.setMessage("Invalid email address")
.show();
*/
//Resty r = new Resty();
//Object name = r.json("http://app.zkn-web.com/register").get("status");
} catch(IOException ioEx) {
ioEx.printStackTrace(); // or what ever you want to do with it
}
}
}
을
프로젝트를 실행하려고 할 때 'android library projects can not launched'라는 오류가 발생합니다. 매니페스트와 관련이 있습니까?
<activity android:name="com.example.mfc.Home" android:label="@string/app_name">
가 같은 것입니까, 아무것도 변경되지 않습니다 : – paul
당신은 logcat을 게시 할 수 있습니다 –
그것은 비어있는 것 같습니다 – paul