React-Native Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

I’m trying do the get started react-native tutorial for Ubuntu, I already have installed nodejs, the react-native command line interface, a JDK, and the android studio. already set it up the environment variables, so when I try run react-native run-android, this error appears: info Starting JS server... info Building and installing the app on the device (cd android && ./gradlew app:installDebug)... Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain error Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: error Command failed: ./gradlew app:installDebug and I can’t find the solution for this.

How to add other info to main page of mobile app?

This is what our app looks like:

enter image description here

For each row I would like to add the amenities for the particular gas station (ie. “parking”, “bathroom”, etc). For example, “Rocket Fuel” has parking, bathroom, and a mechanic.

How can I add this information to the list without disrupting the main purpose of the app (display gas prices)?

People use the app because it tells them the gas prices, but I would like to give them more information without altering the existing flow of the app, or its primary purpose.

My biggest concern is that the list will be too crowded, or maybe adding the information will somehow affect what the users think about the app.

As a sidenote, an app like Gasbuddy (which is similar to our app but doesn’t compete with us) also displays this additional information with icons, but when a user clicks on a gas station. For some reason, gasbuddy decided not to add the icons to the main page.

Schengen visa main country for a mix of tourism/family visits

My family (me, wife and kids) reside in Switzerland where my mother visits us regularly. Usually she applies for a visa through Swiss embassy and gets a 6-month multiple entry visa with “Visite familiale” remark.

Now she wants to do a 3 day trip to France and there is currently no existing plans to visit us in Switzerland, but most probably she will spend much more time in Switzerland than in France in next 6 month.

My question is: if she applies for a tourist visa to France and gets a multiple entry visa (let’s say for example a 5-year one) can she then visit us in Switzerland for the duration of the visa? And in general does the “main destination” rule applies for the first trip to Schengen zone? For example, if one plans to go to France for 3 days, then exit the Schengen zone and then visit Spain for 2 weeks, should he apply through French or Spanish embassy?

Thanks in advance!

Extand main APFS partition on MacOS Mojave 10.14.3

As it can be seen from the screenshot below my APPLE SSD is of size 500GBs, but my Apple_APFS Container disk1 is of size 450GBs. There was a Container disk 2 of size 50GBs before but I successfully removed it using:

sudo diskutil eraseVolume "Free Space" %noformat% /dev/disk0s4 

I tried resizing the main APFS cotnainer with the following command:

diskutil apfs resizeContainer disk0s2 0 

but I am getting the following error:

Error: -69519: The target disk is too small for this operation, or a gap is required in your partition map which is missing or too small, which is often caused by an attempt to grow a partition beyond the beginning of another partition or beyond the end of partition map usable space

Following some screenshots displaying the current state of the sysetm:

 diskutil list /dev/disk0 (internal, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *500.3 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2:                 Apple_APFS Container disk1         449.3 GB   disk0s2    3:       Apple_KernelCoreDump                         655.4 MB   disk0s3  /dev/disk1 (synthesized):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      APFS Container Scheme -                      +449.3 GB   disk1                                  Physical Store disk0s2    1:                APFS Volume Macintosh HD            362.2 GB   disk1s1    2:                APFS Volume Preboot                 55.2 MB    disk1s2    3:                APFS Volume Recovery                517.2 MB   disk1s3    4:                APFS Volume VM                      1.1 GB     disk1s4 

enter image description here

enter image description here

enter image description here

Quero chamar um método public List no main

public class Conteudo {        public List<String> Matriz(String[] array){          String CaminhoArquivo=("C:\Users\jessica borges"                 + "\Downloads\CalculadoraMatrizes-20190315T112959Z-001"                 + "\CalculadoraMatrizes-20190315T112959Z-001"                 + "\CalculadoraMatrizes\src\ArquivosMatriz\matrix.txt");          List<String> conteudo = new ArrayList<>();              try {                 BufferedReader in = new BufferedReader(new FileReader(CaminhoArquivo));       String linha;                 while ((linha = in.readLine()) != null) {                     int var[] = new int[conteudo.size()];                     conteudo.addAll(Arrays.asList(linha.split(" ")));                 return conteudo;                 }                 in.close();         } catch (IOException ioe) {             System.out.println(ioe);         } return conteudo;     } } 

Preciso chamar esse método no método main, estou fazendo assim (porém dá erro):

public static void main(String[] args){    chamarMatriz(); } public void chamarMatriz(){    Conteudo ct = new Conteudo();    List<conteudo> oct  = new List<conteudo>();     ct.Matriz(conteudo); } 

How to provide feedback for events triggered outside the main UI?

My app contains a simple button that, when clicked/tapped, changes its background color in order to provide some visual feedback to the user.

Basically there’s a Button class that listens to input events from the main thread and changes the color when a click event is detected. Nothing unusual so far.

However this button can be triggered also from “external” sources, outside the main UI. For example: a key pressed on the keyboard, an external device (possibly on a separate thread), a network message and so on.

I would like to provide the “button pressed” feedback during such events too. What is the best way to accomplish that in a MVC scenario?

Is data in an APFS container erased after main partition is reformatted?

I am trying to create a data partition for my user account so as if I need to re-install my computer, I do not lose any data that is on the other partition.

If I had the following layout on my 512GB SSD:

  • macOS partition formatted as APFS + APFS container named MacData – 100GB
  • Shared Data partition formatted as ExFAT – 362GB
  • Bootcamp partition formatted as NTFS – 50GB

If I were to format and reinstall the OS on the partition called macOS, would I lose data on my MacData volume? This is if I erased the macOS container rather than the partition it self?

Main app’s icons overlays in Nova Prime’s widgets

I’ve been using Nova Prime for about 5 years, which includes doing at least 10-20 settings backup-and-restore on various devices.

Today I made one another (on my Motorola Moto Z2 Play / Android 8.0 Oreo) and to my extreme surprise I have noticed that all my (restored) contacts widgets have a nasty “main” app (i.e. Contacts) icon overlay over each my contact’s photo.

Analysis so far:

  • the problem is only with Contacts; other widgets (Wikipedia and Fancy Widgets in my case) have no “main” app icon overlay,
  • happens on both widgets restored from Nova Prime’s backup and freshly added,
  • happens on Motorola Moto Z2 only (i.e. does not happen on Motorola One),
  • happens on Motorola Moto Z2 only this time (starting from this backup restore), since I hadn’t this problem for past half year, prior to sending this phone for a repair.


  • does anyone else experiences similar problem?
  • what is its source: is it caused by recent change to Contacts or Nova Prime?
  • is there any workaround or a way to get rid of this nasty little thing?

I am using Motorola Moto Z2 Play (XT-1710-09) with Nova Prime 6.0 on board Android 8.0 Oreo.

Main page VS Side menu for long flat list of items on mobile

I am looking to implement a mobile / tablet application. It currently has two views: an items list view that shows all the items, and an item detail view which shows more detail about a single item. The list of items is very long and would not fit in one screen (scrolling is needed).

My question is, for the list view, what are the reasons that I should choose a main page view over a side menu and vice versa? What benefits does one provide over the other? How might the context of the application matter?

As an example, a detail view could look like this:

enter image description here

The main view version would look like:

enter image description here

Example of applications that use this type of list view include: Gmail (emails view -> email content view) and LINE (chats view -> chat content view)

The side menu version would look like:

enter image description here

Example of applications that use this type of list view include: Slack (chats view -> chat content view)