我的第一个手机缺口应用程序创建错误

时间:2014-06-02 23:55:39

标签: cordova

我已经在我的系统中安装了环境。我已经从注释行创建了一个到android的phonegap项目,当我在eclipse中打开项目时显示错误并且不会运行这是错误文件 Description Resource Path Location Type The method onCreate(Bundle) of type sopickapp must override or implement a supertype method soapp.java ‪/soapp/src/com/soapp line 28 Java Problem DroidGap cannot be resolved to a type soapp.java ‪/soapp/src/com/soapp‬ line 30 Java Problem The import org.apache.cordova cannot be resolved soapp.java ‪/soapp/src/com/soapp‬ line 23 Java Problem DroidGap cannot be resolved to a type soapp.java ‪/soapp/src/com/soapp line 25 Java Problem Config cannot be resolved soapp.java ‪/soappp/src/com/ssoapp‬ line 32 Java Problem

    package com.soappsopickapp;

    import android.os.Bundle;
    import org.apache.cordova.*;

    public class sopickapp extends DroidGap
    {
        @Override
        public void onCreate(Bundle savedInstanceState)
        {
            super.onCreate(savedInstanceState);
            // Set by <content src="index.html" /> in config.xml
            super.loadUrl(Config.getStartUrl());
            //super.loadUrl("file:///android_asset/www/index.html")
        }
    }

0 个答案:

没有答案