I wrote code for my first extension and when I build it there was no error. But when I am trying to download it, it is not downloading.
Have a look at my code:
Blockquote
import android.content.Context;
import android.util.Log;
import com.google.appinventor.components.annotations.;
import com.google.appinventor.components.runtime.;
import com.google.appinventor.components.common.ComponentCategory;
@DesignerComponent(version = 1, description = “Created by Muhammad Aariz Imam
”,
category = ComponentCategory.EXTENSION,
nonVisible = true, iconName = “https://yt3.ggpht.com/qu1iPf9N7rbn4N8Emt78bVzaIvZFz3GGoR0DSdWXF1b51RC_O409C8vllcB3hO6leAK69G6On_g=s176-c-k-c0x00ffffff-no-rj-mo”)
@SimpleObject(external = true)
public class Mathf extends AndroidNonvisibleComponent {
private ComponentContainer container;
/**
* @param container container, component will be placed in
*/
public Mathf(ComponentContainer container) {
super(container.$form());
this.container = container;
}
@SimpleFunction(description = "This function will add 2 integers")
public int Add(int a, int b) {
return a + b;
}
}
Blockquote
Now have a look at the error: Download Error - YouTube
What should I do now?
Edit: I found the solution. Copy the download link and paste it in a new tab. It worked for me!