I am getting some error in compiling extension

I was compiling my 360 Viewer extension and I got this output

Buildfile: /projects/goldv2/appinventor-sources/appinventor/build.xml

extensions:

clean:
[delete] Deleting directory /projects/goldv2/appinventor-sources/appinventor/components/build

BUILD FAILED
/projects/goldv2/appinventor-sources/appinventor/build.xml:34: The following error [delete] Deleting directory /projects/goldv2/appinventor-sources/appinventor/components/reports

init:

common_CommonUtils:

init:

CommonUtils:

common_CommonVersion:

init:

CommonVersion:
[exec] Result: 128
[exec] Result: 128

CopyToRunLibDir:

components_AndroidRuntime:

init:
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/build/components
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/build
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/build/classes
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/reports
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/reports/raw
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/reports/html

CommonConstants:
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/build/classes/CommonConstants
[javac] Compiling 6 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/CommonConstants
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] 1 warning
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/CommonConstants/com/google/appinventor/components/common/package-info.class
[jar] Building jar: /projects/goldv2/appinventor-sources/appinventor/build/components/CommonConstants.jar
[jar] Building jar: /projects/goldv2/appinventor-sources/appinventor/build/components/CommonConstants-gwt.jar

HtmlEntities:
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/build/classes/HtmlEntities
[javac] Compiling 1 source file to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/HtmlEntities
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] 1 warning
[jar] Building jar: /projects/goldv2/appinventor-sources/appinventor/components/build/HtmlEntities.jar

common_CommonVersion:

init:

CommonVersion:
[exec] Result: 128
[exec] Result: 128

AndroidRuntime:
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AndroidRuntime
[javac] Compiling 332 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AndroidRuntime
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 warning
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/com/google/appinventor/components/runtime/util/package-info.class
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/com/google/appinventor/components/annotations/androidmanifest/package-info.class
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/com/google/appinventor/components/runtime/collect/package-info.class
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/com/google/appinventor/components/annotations/package-info.class
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/com/google/appinventor/components/runtime/package-info.class
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/com/google/appinventor/components/runtime/errors/package-info.class
[jar] Building jar: /projects/goldv2/appinventor-sources/appinventor/build/components/AndroidRuntime.jar

components_Barcode:

Barcode:
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/build/classes/Barcode
[javac] Compiling 40 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/Barcode
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 warning
[jar] Building jar: /projects/goldv2/appinventor-sources/appinventor/build/components/Barcode.jar

components_ComponentList:

init:

CommonConstants:

ComponentProcessingLib:
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/build/classes/ComponentProcessingLib
[javac] Compiling 26 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/ComponentProcessingLib
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] Note: /projects/goldv2/appinventor-sources/appinventor/components/src/com/google/appinventor/components/scripts/ComponentProcessor.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 1 warning
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/ComponentProcessingLib/com/google/appinventor/components/annotations/androidmanifest/package-info.class
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/ComponentProcessingLib/com/google/appinventor/components/annotations/package-info.class
[jar] Building jar: /projects/goldv2/appinventor-sources/appinventor/components/build/ComponentProcessingLib.jar

HtmlEntities:

common_CommonUtils:

init:

CommonUtils:

AnnotationProcessors:
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AnnotationProcessors
[javac] Compiling 7 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AnnotationProcessors
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] Note: /projects/goldv2/appinventor-sources/appinventor/components/src/com/google/appinventor/components/scripts/ComponentProcessor.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 1 warning
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AnnotationProcessors/com/google/appinventor/components/scripts/package-info.class
[copy] Copying 22 files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AnnotationProcessors
[jar] Building jar: /projects/goldv2/appinventor-sources/appinventor/components/build/AnnotationProcessors.jar

common_CommonVersion:

init:

CommonVersion:
[exec] Result: 128
[exec] Result: 128

AndroidRuntime:
[javac] Compiling 15 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AndroidRuntime
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] 1 warning

Barcode:

ComponentList:
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/build/classes/ComponentList
[javac] Compiling 307 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/ComponentList
[javac] warning: No SupportedSourceVersion annotation found on com.google.appinventor.components.scripts.ComponentListGenerator, returning RELEASE_6.
[javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.google.appinventor.components.scripts.ComponentListGenerator' less than -source '1.8'
[javac] Note: Wrote file file:/projects/goldv2/appinventor-sources/appinventor/components/build/classes/ComponentList/simple_components.txt
[javac] Note: Wrote file file:/projects/goldv2/appinventor-sources/appinventor/components/build/classes/ComponentList/simple_components_build_info.json
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 warnings
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/ComponentList/com/google/appinventor/components/runtime/util/package-info.class
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/ComponentList/com/google/appinventor/components/runtime/collect/package-info.class
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/ComponentList/com/google/appinventor/components/runtime/package-info.class
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/ComponentList/com/google/appinventor/components/runtime/errors/package-info.class
[copy] Copying 1 file to /projects/goldv2/appinventor-sources/appinventor/build/components
[copy] Copying 1 file to /projects/goldv2/appinventor-sources/appinventor/build/components

BuildServer:
[copy] Copying 4 files to /projects/goldv2/appinventor-sources/appinventor/buildserver/build/classes/BuildServer/files
[jar] Building jar: /projects/goldv2/appinventor-sources/appinventor/buildserver/build/run/lib/BuildServer.jar

init:

CommonConstants:

HtmlEntities:

common_CommonVersion:

init:

CommonVersion:
[exec] Result: 128
[exec] Result: 128

AndroidRuntime:
[javac] Compiling 15 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AndroidRuntime
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] 1 warning

ComponentProcessingLib:

common_CommonUtils:

init:

CommonUtils:

AnnotationProcessors:

JsonComponentDescription:
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/build/classes/JsonComponentDescription
[javac] Compiling 307 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/JsonComponentDescription
[javac] warning: No SupportedSourceVersion annotation found on com.google.appinventor.components.scripts.ComponentDescriptorGenerator, returning RELEASE_6.
[javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.google.appinventor.components.scripts.ComponentDescriptorGenerator' less than -source '1.8'
[javac] Note: Wrote file file:/projects/goldv2/appinventor-sources/appinventor/components/build/classes/JsonComponentDescription/simple_components.json
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 warnings
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/JsonComponentDescription/com/google/appinventor/components/runtime/util/package-info.class
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/JsonComponentDescription/com/google/appinventor/components/runtime/collect/package-info.class
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/JsonComponentDescription/com/google/appinventor/components/runtime/package-info.class
[javac] Creating empty /projects/goldv2/appinventor-sources/appinventor/components/build/classes/JsonComponentDescription/com/google/appinventor/components/runtime/errors/package-info.class
[copy] Copying 1 file to /projects/goldv2/appinventor-sources/appinventor/build/components

Barcode:

ComponentList:
[javac] Compiling 15 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/ComponentList
[javac] warning: No SupportedSourceVersion annotation found on com.google.appinventor.components.scripts.ComponentListGenerator, returning RELEASE_6.
[javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.google.appinventor.components.scripts.ComponentListGenerator' less than -source '1.8'
[javac] 2 warnings

ExternalComponentGenerator:
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/build/classes/ExternalComponentGenerator
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/build/externalComponents
[mkdir] Created dir: /projects/goldv2/appinventor-sources/appinventor/components/build/externalComponents-class
[javac] Compiling 1 source file to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/ExternalComponentGenerator
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] 1 warning
[java]
[java] Extensions : Generating extensions
[java]
[java] Extensions : Generating files [com.appybuilder.anshmishra2166.View360]
[java] Extensions : Copying file com/appybuilder/anshmishra2166/View360/View360$WebViewInterface$1.class
[java] Extensions : Copying file com/appybuilder/anshmishra2166/View360/View360$WebViewInterface.class
[java] Extensions : Copying file com/appybuilder/anshmishra2166/View360/View360.class
[java] Extensions : Successfully created com.appybuilder.anshmishra2166.View360 build info file
[java] Extensions : Successfully created com.appybuilder.anshmishra2166.View360 extension properties file

unjarAllExtensionLibraries:

unjarExtensionLibraries:

jarAllExtensions:

jarExtension:
[jar] Building jar: /projects/goldv2/appinventor-sources/appinventor/components/build/externalComponents-class/com.appybuilder.anshmishra2166.View360.jar
[copy] Copying 1 file to /projects/goldv2/appinventor-sources/appinventor/components/build/externalComponents/com.appybuilder.anshmishra2166.View360/files
[echo] Generated build file AndroidRuntime.jar [com.appybuilder.anshmishra2166.View360]

dexAllExtensions:

dexExtension:
[echo] Dexing extension: com.appybuilder.anshmishra2166.View360

extensions:

packExtension:
[zip] Building zip: /var/www/html/logs/com.appybuilder.anshmishra2166.View360.aix

BUILD SUCCESSFUL
Total time: 19 seconds

Even build success is showing but, not aix is there

Have you set object to external?

@SimpleObject(external = true)

My extension is open source

import android.content.res.AssetManager;
import android.Manifest;
import android.app.Activity;
import android.view.View;
import android.webkit.WebView;
import android.util.Base64;
import android.content.Context;

import com.google.appinventor.components.annotations.*;
import com.google.appinventor.components.runtime.*;
import com.google.appinventor.components.common.ComponentCategory;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

import android.os.Environment;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.view.View;
import android.widget.FrameLayout.LayoutParams;
import com.google.appinventor.components.runtime.HVArrangement;
import com.google.appinventor.components.common.YaVersion;
import android.widget.FrameLayout;
import android.content.Context;
import java.io.InputStream;
import android.graphics.BitmapFactory;
import android.graphics.drawable.Drawable;
import android.graphics.Bitmap;
import android.Manifest;
import android.content.Context;
import android.webkit.JavascriptInterface;
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.ComponentCategory;
import com.google.appinventor.components.common.PropertyTypeConstants;
import com.google.appinventor.components.common.YaVersion;

import com.google.appinventor.components.runtime.util.EclairUtil;
import com.google.appinventor.components.runtime.util.FroyoUtil;
import com.google.appinventor.components.runtime.util.MediaUtil;
import com.google.appinventor.components.runtime.util.SdkLevel;

import android.view.MotionEvent;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;

@DesignerComponent(version = 1,  description = "An extension to add 360 Videos and Images support to you apps<br>" + 
                   "Made By: <br> Marco Tanzi and Rudra<br>",
        category = ComponentCategory.EXTENSION,
        nonVisible = true,   iconName = "https://res.cloudinary.com/rudracloudservice/image/upload/v1613358981/circle-cropped_16_1_a12wxj.png")
@SimpleObject(external = true)
@UsesPermissions(permissionNames = "android.permission.WRITE_EXTERNAL_STORAGE, android.permission.READ_EXTERNAL_STORAGE,android.permission.INTERNET,android.permission.ACCESS_FINE_LOCATION")
public class View360 extends AndroidNonvisibleComponent {
    private ComponentContainer container;
    /**
     * @param container container, component will be placed in
     */
 private Context context;

private  WebView webView3;
 WebViewInterface wvInterface;
    public View360(ComponentContainer container) {
        super(container.$form());
        this.container = container;
       context = (Context) container.$context();
     
    }
  @SimpleFunction(description = "Map")
	public  void View360Link(String img,boolean autoload,String autorotate) {
   
	String url="file:///mnt/sdcard/AppInventor/assets/";
   
        	  WebView webView3 = new WebView(context);
      
     webView3.getSettings().setJavaScriptEnabled(true);
      webView3.getSettings().setDomStorageEnabled(true);
     webView3.getSettings().setAppCacheEnabled(true);
     webView3.getSettings().setLoadsImagesAutomatically(true);
     
  wvInterface = new WebViewInterface(webView3.getContext());
    webView3.addJavascriptInterface(wvInterface, "AppInventor");
    
                           webView3.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW); 
      
           //FrameLayout fl = (FrameLayout)layout.getView();
 // FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT);
     
     
 
 String  data6="<!DOCTYPE html><html> <script>img='"+img+"';a=img;a=escape(a);autoload='"+autoload+"';b=autoload;if(b!=''){b='&autoLoad='+b}else{b=''};autorotate='"+autorotate+"';if(autorotate=='positive'){autorotate='&autoRotate=+2'};if(autorotate=='negative'){autorotate='&autoRotate=-2'};if(autorotate=='false'){autorotate=''};c=autorotate; x='https://cdn.pannellum.org/2.5/pannellum.htm#panorama=';x=unescape(x);x=x+a+b+c;document.write(x);window.AppInventor.setWebViewString(x) </script></html>";
      webView3.loadDataWithBaseURL(url,data6, "text/html", "UTF-8", null); 
      	//fl.addView(webView3);
      
    
    }
  
   @SimpleFunction(description = "Map")
	public  void View360Gyroscope(HVArrangement layout,String image,int width,int height) {
  
	String url="file:///mnt/sdcard/AppInventor/assets/";
   
        	  WebView webView3 = new WebView(context);
      
     webView3.getSettings().setJavaScriptEnabled(true);
      webView3.getSettings().setDomStorageEnabled(true);
     webView3.getSettings().setAppCacheEnabled(true);
     webView3.getSettings().setLoadsImagesAutomatically(true);
     
  wvInterface = new WebViewInterface(webView3.getContext());
    webView3.addJavascriptInterface(wvInterface, "AppInventor");
    
                           webView3.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW); 
      
           FrameLayout fl = (FrameLayout)layout.getView();
  FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT);
     
     
 
 String  data6="<!DOCTYPE html> <html lang='en'> <head> <meta charset='utf-8'> <meta name='viewport' content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no'> <title>PanoViewer - Motion</title> <script src='https://naver.github.io/egjs-view360/common/js/jquery-2.2.4.js'></script> <script src='https://naver.github.io/egjs-view360/common/js/qrcode.js'></script> <script src='https://naver.github.io/egjs-view360/common/js/screenfull.min.js'></script> <script src='https://naver.github.io/egjs-view360/common/js/PieView.js'></script> <script src='https://naver.github.io/egjs-view360/common/js/GyroTouchOptions.js'></script> <script src='https://naver.github.io/egjs-view360/release/latest/dist/view360.pkgd.js'></script> <script src='https://naver.github.io/egjs-view360/common/js/PanoControls.js'></script> <link rel='stylesheet' type='text/css' href='https://naver.github.io/egjs-view360/common/css/demo.css'> <link rel='stylesheet' type='text/css' href='https://naver.github.io/egjs-view360/common/css/PanoControls.css'> <style> </style> </head> <body> <div class='panoviewer-container viewer'> <div id='panoSet'> <div class='panoviewer container' id='myPanoViewer'></div> </div> </div> <script> var PanoViewer = eg.view360.PanoViewer; var container = document.getElementById('myPanoViewer'); var panoViewer = new PanoViewer(container, { image: '"+image+"' }); var panoviewerSet = document.getElementById('panoSet'); PanoControls.init(panoviewerSet, panoViewer, {enableGyroOption: true, enableTouchOption: true}); PanoControls.showLoading(); </script> </body> </html>"; 
      
      webView3.loadDataWithBaseURL(url,data6, "text/html", "UTF-8", null); 
      	fl.addView(webView3);
      
    
    }
  
  
    @SimpleFunction(description = "Map")
	public  void View360Video(HVArrangement layout,String video,boolean autoplay,String controls,String muted,String loop,int width,int height) {
  
	String url="file:///mnt/sdcard/AppInventor/assets/";
   
        	  WebView webView3 = new WebView(context);
      
     webView3.getSettings().setJavaScriptEnabled(true);
      webView3.getSettings().setDomStorageEnabled(true);
     webView3.getSettings().setAppCacheEnabled(true);
     webView3.getSettings().setLoadsImagesAutomatically(true);
     
  wvInterface = new WebViewInterface(webView3.getContext());
    webView3.addJavascriptInterface(wvInterface, "AppInventor");
    
                           webView3.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW); 
      
           FrameLayout fl = (FrameLayout)layout.getView();
  FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT);
     
     
 
 String  data6="<html> <head> <meta charset='utf-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Pannellum Video</title> <link rel='stylesheet' href='https://cdn.pannellum.org/2.4/pannellum.css'/> <script type='text/javascript' src='https://cdn.pannellum.org/2.4/pannellum.js'></script> <link href='https://vjs.zencdn.net/5.4.6/video-js.css' rel='stylesheet' type='text/css'> <script src='https://vjs.zencdn.net/5.4.6/video.js'></script> <script src='https://pannellum.org/js/videojs-pannellum-plugin.js'></script> <style> #panorama { width:"+width+"px; height:"+height+"px; } </style> </head> <body> <video id='panorama' class='video-js vjs-default-skin vjs-big-play-centered'"+controls+" preload='none'"+muted+" autoplay="+autoplay+"  preload='none' "+loop+" style='width:100%;height:400px;' poster='"+video+"' crossorigin='anonymous'> <source src='"+video+"' type='video/webm'/> <source src='"+video+"' type='video/mp4'/> <p class='vjs-no-js'> To view this video please enable JavaScript, and consider upgrading to a web browser that <a href='http://videojs.com/html5-video-support' target='_blank'>supports HTML5 video</a> </p> </video> <script> videojs('panorama', { plugins: { pannellum: {} } }); </script> </body> </html>"; 
      
      webView3.loadDataWithBaseURL(url,data6, "text/html", "UTF-8", null); 
      	fl.addView(webView3);
      
    
    }
  
   @SimpleFunction(description = "Map")
	public  void View360Image(HVArrangement layout,String img,boolean autoload,String autorotate,int width,int height) {
   
	String url="file:///mnt/sdcard/AppInventor/assets/";
   
        	  WebView webView3 = new WebView(context);
      
     webView3.getSettings().setJavaScriptEnabled(true);
      webView3.getSettings().setDomStorageEnabled(true);
     webView3.getSettings().setAppCacheEnabled(true);
     webView3.getSettings().setLoadsImagesAutomatically(true);
     
  wvInterface = new WebViewInterface(webView3.getContext());
    webView3.addJavascriptInterface(wvInterface, "AppInventor");
    
                           webView3.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW); 
      
           FrameLayout fl = (FrameLayout)layout.getView();
  FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT);
     
     
 
 String  data6="<!DOCTYPE HTML> <html> <head> <meta charset='utf-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>A simple example</title> <link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/pannellum@2.5.6/build/pannellum.css'/> <script type='text/javascript' src='https://cdn.jsdelivr.net/npm/pannellum@2.5.6/build/pannellum.js'></script> <style> #panorama { width:"+width+"px; height:"+height+"px; } </style> </head> <body> <div id='panorama'></div> <script>var autorotate='"+autorotate+"';if(autorotate=='positive'){autorotate='+2'};if(autorotate=='negative'){autorotate='-2'};if(autorotate=='false'){autorotate='0'}; pannellum.viewer('panorama', { 'type': 'equirectangular', 'panorama': '"+img+"','autoLoad':"+autoload+",   'autoRotate':autorotate  }); </script> </body> </html>"; 
      
      webView3.loadDataWithBaseURL(url,data6, "text/html", "UTF-8", null); 
      	fl.addView(webView3);
      
    
    }
  
  
   @SimpleFunction(description = "YouTube")
	public  void View360YouTubeVideo(HVArrangement layout,String video,int width,int height) {
 
	String url="file:///mnt/sdcard/AppInventor/assets/";
   
        	  WebView webView3 = new WebView(context);
     webView3.getSettings().setGeolocationEnabled(true);
     webView3.getSettings().setJavaScriptEnabled(true);
      webView3.getSettings().setDomStorageEnabled(true);
     webView3.getSettings().setAppCacheEnabled(true);
     webView3.getSettings().setLoadsImagesAutomatically(true);
     
  wvInterface = new WebViewInterface(webView3.getContext());
    webView3.addJavascriptInterface(wvInterface, "AppInventor");
    
                           webView3.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW); 
      
           FrameLayout fl = (FrameLayout)layout.getView();
  FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT);
     
     
 

      
       String  data7="<iframe width="+width+" height="+height+" src='https://www.youtube.com/embed/"+video+"?rel=0&amp;showinfo=0'</iframe>"; 
      
      webView3.loadDataWithBaseURL(url,data7, "text/html", "UTF-8", null); 
      	fl.addView(webView3);
      
    
    }
  
  
    @SimpleFunction(description = "fb")
	public  void View360FacebookVideo(HVArrangement layout,String video) {
 
	String url="file:///mnt/sdcard/AppInventor/assets/";
   
        	  WebView webView3 = new WebView(context);
     webView3.getSettings().setGeolocationEnabled(true);
     webView3.getSettings().setJavaScriptEnabled(true);
      webView3.getSettings().setDomStorageEnabled(true);
     webView3.getSettings().setAppCacheEnabled(true);
     webView3.getSettings().setLoadsImagesAutomatically(true);
     
  wvInterface = new WebViewInterface(webView3.getContext());
    webView3.addJavascriptInterface(wvInterface, "AppInventor");
    
                           webView3.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW); 
      
           FrameLayout fl = (FrameLayout)layout.getView();
  FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT);    
    
      String data7="<!DOCTYPE html> <html> <body> <script async defer src='https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2'></script> <div class='fb-video' data-href='https://www.facebook.com/watch/?v="+video+"' data-width='auto' data-show-captions='false'> </div> </body> </html>";
      webView3.loadDataWithBaseURL(url,data7, "text/html", "UTF-8", null); 
      	fl.addView(webView3);
    }
  
  @SimpleProperty(description = "Gets the WebView's String, which is viewable through " +
      "Javascript in the WebView as the window.AppInventor object",
      category = PropertyCategory.BEHAVIOR)
  public String link() {
    return wvInterface.getWebViewString();
  }

  /**
   * Sets the web view string
   */
  
  @SimpleEvent(description = "When the JavaScript calls AppInventor.setWebViewString this event is run.")
  public void LinkReady(String value) {
    EventDispatcher.dispatchEvent(this, "LinkReady", value);
  }
public class WebViewInterface {
    Context mContext;
    String webViewString;


    WebViewInterface(Context c) {
      mContext = c;
      webViewString = " ";
    }

    /**
     * Gets the web view string
     *
     * @return string
     */
    @JavascriptInterface
    public String getWebViewString() {
      return webViewString;
    }

    /**
     * Sets the web view string
     */
   @JavascriptInterface
    public void setWebViewString(final String newString) {
      webViewString = newString;

      container.$form().runOnUiThread(new Runnable() {
        public void run() {
         LinkReady(newString);
        }
      });
    }
  public void setWebViewStringFromBlocks(final String newString) {
      webViewString = newString;
    }
  }
}

Try using Extension Template:

1 Like

Ok @vknow360 I will try to use it

@Rudra_Software_Corpo please also use guarded code blocks to make your posts more readable, like so:

```
code
```

will give:

code

OK @ewpatton

I edited yout post for you
Taifun

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.