Android Studio 3.6.1 and Phidget22 examples?

Supporting Java SE version 7 and up
Post Reply
JonasPR
Fresh meat
Posts: 2
Joined: Thu Feb 27, 2020 11:04 am
Contact:

Android Studio 3.6.1 and Phidget22 examples?

Post by JonasPR »

I am new to Android Studio. When I create an empty basic app in Android Studio, I can compile it and run it on my phone.

When I download a Phidget22 Android Studio java example, load it, and try to run it, Android Studio complains that the configuration needs a "module" and it doesn't see my plugged in phone.

I don't understand how to associate the app module with the configuration or how to get it to see the phone.

Any help in getting the phidget sample running would be great.
johnamaro
Fresh meat
Posts: 1
Joined: Tue Sep 15, 2020 1:05 am
Contact:

Re: Android Studio 3.6.1 and Phidget22 examples?

Post by johnamaro »

Make sure your build.gradle is

apply plugin: 'com.android.application'
not

apply plugin: 'com.android.library'
After you have changed, please sync your gradle again.

or try this

I fixed this by adding facets in Module settings. They were missing. right click on project > open Module settings > Facets > Add facets ( "+" sign at the top ) > Android. After adding facets you will have modules.

UPDATE:

For latest version of gradle, Facets have been removed, you can directly add modules now. right click on project > open Module settings > Add module ( "+" sign at the top ) > Phone and Tablet Application (Now you can create a new module and configure it).
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests