当maven构建我的应用程序时,包R不存在?

时间:2015-02-20 09:17:33

标签: java android eclipse maven r.java-file

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile 
    (default-cli) on project New_Sample: Compilation failure
[ERROR] workspace/New_Sample/src/main/java/com/samplepackge/New_Sample/HelloAndroidActivity1.java:
    [22,25] package R does not exist

HelloAndroidActivity1:

package com.samplepackge.New_Sample; 

import android.app.Activity; 
import android.os.Bundle; 
import android.util.Log; 
import android.view.Menu; 
import android.*; 

public class HelloAndroidActivity1 extends Activity { 

    @Override 
    public void onCreate(Bundle savedInstanceState) {     
        super.onCreate(savedInstanceState); 
        setContentView(R.layout.activity_main); 
    }
} 

对此有什么想法...我已经尝试过以前的建议但是没有得到确切的解决方案,请帮助我

0 个答案:

没有答案