Getting error and warning while compile my IDE project

I’m getting error and warning when compile extension
Here the massages

Started Compiling Project StreamVideoPlayer
Buildfile: /compiler/android/build.xml

javac:
[mkdir] Created dir: /compiler/android/build/xVaxF/classes
[javac] Compiling 1 source file to /compiler/android/build/xVaxF/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] /compiler/android/src/xVaxF/in/streamvideoplayer/StreamVideoPlayer.java:3: error: class, interface, or enum expected
[javac] package com.google.appinventor.components.runtime;
[javac] ^
[javac] 1 error
[javac] 1 warning

And Here My JavaScript

package in.streamvideoplayer;

package com.google.appinventor.components.runtime;

import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.widget.MediaController;
import android.widget.VideoView;

import com.google.appinventor.components.annotations.DesignerComponent;
import com.google.appinventor.components.annotations.DesignerProperty;
import com.google.appinventor.components.annotations.PropertyCategory;
import com.google.appinventor.components.annotations.SimpleEvent;
import com.google.appinventor.components.annotations.SimpleFunction;
import com.google.appinventor.components.annotations.SimpleObject;
import com.google.appinventor.components.annotations.SimpleProperty;
import com.google.appinventor.components.annotations.UsesPermissions;
import com.google.appinventor.components.common.Component;
import com.google.appinventor.components.common.ComponentCategory;
import com.google.appinventor.components.runtime.AndroidViewComponent;
import com.google.appinventor.components.runtime.ComponentContainer;
import com.google.appinventor.components.runtime.PermissionResultHandler;
import com.google.appinventor.components.runtime.util.ErrorMessages;
import com.google.appinventor.components.runtime.util.MediaUtil;
import com.google.appinventor.components.runtime.util.SdkLevel;
import com.google.appinventor.components.runtime.Component;

import java.io.IOException;

@DesignerComponent(
version = 2,
description = “A multimedia component capable of playing network stream videos.”,
category = ComponentCategory.MEDIA,
iconName = “images/videoPlayer.png”
)
@SimpleObject
@UsesPermissions(permissionNames = “android.permission.INTERNET”)
public class StreamVideoPlayer extends AndroidViewComponent
implements MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener {

private final VideoView videoView;
private String videoUrl;
private boolean autoplay = false;

private boolean mediaReady = false;
private boolean delayedStart = false;
private MediaPlayer mediaPlayer;
private final Handler androidUIHandler = new Handler();

public StreamVideoPlayer(ComponentContainer container) {
    super(container);
    container.$form().registerForOnDestroy(this);
    videoView = new VideoView(container.$context());
    videoView.setMediaController(new MediaController(container.$context()));
    videoView.setOnCompletionListener(this);
    videoView.setOnErrorListener(this);
    videoView.setOnPreparedListener(this);

    container.$add(this);
    container.setChildWidth(this, ComponentConstants.VIDEOPLAYER_PREFERRED_WIDTH);
    container.setChildHeight(this, ComponentConstants.VIDEOPLAYER_PREFERRED_HEIGHT);

    container.$form().setVolumeControlStream(AudioManager.STREAM_MUSIC);
    videoUrl = "";
}

@Override
public View getView() {
    return videoView;
}

@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_STRING, defaultValue = "")
@SimpleProperty(
        description = "The URL of the network stream video to play.",
        category = PropertyCategory.BEHAVIOR)
public void VideoUrl(String url) {
    final String tempUrl = (url == null) ? "" : url;
    if (TiramisuUtil.requestVideoPermissions(container.$form(), url,
            new PermissionResultHandler() {
                @Override
                public void HandlePermissionResponse(String permission, boolean granted) {
                    if (granted) {
                        StreamVideoPlayer.this.VideoUrl(tempUrl);
                    } else {
                        container.$form().dispatchPermissionDeniedEvent(StreamVideoPlayer.this, "VideoUrl",
                                permission);
                    }
                }
            })) {
        return;
    }

    videoUrl = (url == null) ? "" : url;
    videoView.setVideoURI(Uri.parse(videoUrl));
    videoView.requestFocus();

    if (autoplay) {
        Start();
    }
}

@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN, defaultValue = "False")
@SimpleProperty(
        description = "Determines whether the video should autoplay when the URL is set.",
        category = PropertyCategory.BEHAVIOR)
public void Autoplay(boolean autoplay) {
    this.autoplay = autoplay;
}

@SimpleProperty
public boolean Autoplay() {
    return autoplay;
}

@SimpleFunction(description = "Starts playback of the video.")
public void Start() {
    if (mediaReady) {
        videoView.start();
    } else {
        delayedStart = true;
    }
}

@SimpleFunction(description = "Pauses playback of the video.")
public void Pause() {
    videoView.pause();
    delayedStart = false;
}

@SimpleFunction(description = "Stops playback of the video and seeks to the beginning.")
public void Stop() {
    videoView.stopPlayback();
    delayedStart = false;
}

@SimpleFunction(
        description = "Seeks to the specified position (in milliseconds) in the video.")
public void SeekTo(int milliseconds) {
    videoView.seekTo(milliseconds);
}

@SimpleProperty(description = "Returns the duration of the video in milliseconds.")
public int Duration() {
    return videoView.getDuration();
}

@Override
public void onCompletion(MediaPlayer mediaPlayer) {
    Completed();
}

@SimpleEvent(description = "Event indicating that the video playback has completed.")
public void Completed() {
    EventDispatcher.dispatchEvent(this, "Completed");
}

@Override
public boolean onError(MediaPlayer mediaPlayer, int what, int extra) {
    mediaReady = false;
    delayedStart = false;
    container.$form().dispatchErrorOccurredEvent(this, "VideoUrl",
            ErrorMessages.ERROR_UNABLE_TO_LOAD_MEDIA, videoUrl);
    return true;
}

@Override
public void onPrepared(MediaPlayer mediaPlayer) {
    mediaReady = true;
    delayedStart = false;
    this.mediaPlayer = mediaPlayer;

    if (delayedStart) {
        Start();
    }
}

}

*Please help me to solve this problem.

Why do you have two package in your java code?

When I delete the package com.google.appinventor.components.runtime;
I’m getting another error and warning
Here the error and warning

tarted Compiling Project StreamVideoPlayer
Buildfile: /compiler/android/build.xml

javac:
[mkdir] Created dir: /compiler/android/build/jxacX/classes
[javac] Compiling 1 source file to /compiler/android/build/jxacX/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] /compiler/android/src/jxacX/in/streamvideoplayer/StreamVideoPlayer.java:22: error: cannot find symbol
[javac] import com.google.appinventor.components.common.Component;
[javac] ^
[javac] symbol: class Component
[javac] location: package com.google.appinventor.components.common
[javac] /compiler/android/src/jxacX/in/streamvideoplayer/StreamVideoPlayer.java:79: error: cannot find symbol
[javac] @DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_STRING, defaultValue = “”)
[javac] ^
[javac] symbol: variable PropertyTypeConstants
[javac] location: class StreamVideoPlayer
[javac] /compiler/android/src/jxacX/in/streamvideoplayer/StreamVideoPlayer.java:109: error: cannot find symbol
[javac] @DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN, defaultValue = “False”)
[javac] ^
[javac] symbol: variable PropertyTypeConstants
[javac] location: class StreamVideoPlayer
[javac]
[javac]
[javac] An annotation processor threw an uncaught exception.
[javac] Consult the following stack trace for details.
[javac] java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed data found for annotation element public abstract java.lang.String com.google.appinventor.components.annotations.DesignerProperty.editorType() (Found data of type PropertyTypeConstants)
[javac] at com.sun.tools.javac.model.AnnotationProxyMaker$ValueVisitor$1AnnotationTypeMismatchExceptionProxy.generateException(AnnotationProxyMaker.java:269)
[javac] at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:84)
[javac] at com.sun.proxy.$Proxy6.editorType(Unknown Source)
[javac] at com.google.appinventor.components.scripts.ComponentProcessor.processProperties(ComponentProcessor.java:1732)
[javac] at com.google.appinventor.components.scripts.ComponentProcessor.processComponent(ComponentProcessor.java:1359)
[javac] at com.google.appinventor.components.scripts.ComponentProcessor.process(ComponentProcessor.java:1070)
[javac] at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:802)
[javac] at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:713)
[javac] at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
[javac] at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1043)
[javac] at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1184)
[javac] at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
[javac] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:523)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:381)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:370)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:361)
[javac] at com.sun.tools.javac.Main.compile(Main.java:56)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[javac] at java.lang.reflect.Method.invoke(Method.java:498)
[javac] at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:57)
[javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1388)
[javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1117)
[javac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[javac] at java.lang.reflect.Method.invoke(Method.java:498)
[javac] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[javac] at org.apache.tools.ant.Task.perform(Task.java:350)
[javac] at org.apache.tools.ant.Target.execute(Target.java:449)
[javac] at org.apache.tools.ant.Target.performTasks(Target.java:470)
[javac] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391)
[javac] at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
[javac] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[javac] at org.apache.tools.ant.Project.executeTargets(Project.java:1254)
[javac] at org.apache.tools.ant.Main.runBuild(Main.java:830)
[javac] at org.apache.tools.ant.Main.startAnt(Main.java:223)
[javac] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
[javac] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)