F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_21681030_30339\Main.java:6: 错误: 类MyApplication是公共的, 应在名为 MyApplication.java 的文件中声明
public class MyApplication extends Application{
       ^
0_0_21681030_30339\Main.java:3: 错误: 程序包android.app不存在
import android.app.Application;
                  ^
0_0_21681030_30339\Main.java:4: 错误: 程序包android.util不存在
import android.util.Log;
                   ^
0_0_21681030_30339\Main.java:6: 错误: 找不到符号
public class MyApplication extends Application{
                                   ^
  符号: 类 Application
0_0_21681030_30339\Main.java:8: 错误: 方法不会覆盖或实现超类型的方法
    @Override
    ^
0_0_21681030_30339\Main.java:10: 错误: 找不到符号
        super.onCreate();
        ^
  符号:   变量 super
  位置: 类 MyApplication
0_0_21681030_30339\Main.java:11: 错误: 找不到符号
        Log.i("demo", "source apk onCreate:"+this);
        ^
  符号:   变量 Log
  位置: 类 MyApplication
7 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 07:39:19, Gzip enabled