[Q] how do you setup android studio? - Android Q&A, Help & Troubleshooting

ok so earlier i was asking about how to come over from windows phone developing, i didnt just sit and wait for replys i got started.
i installed android studio
i learned that it didnt have the 4.4 api by default (the version of android my new phone will be running) so i located the sdk manager and installed the missing sdk
the preview pane for the layout editor could not render...i learnt i needed to go to the module settings and change the target there, then to the preview pane drop down and change the targeted android version there.
I added a simple button and then realised i have an error with the java ...that i have yet to touch!
Code:
public class MainDisplay extends ActionBarActivity {
ActionBarActivity is deapreciated....but thats the default template!
Code:
getMenuInflater().inflate(R.menu.menu_main, menu);
cannot resolve symbol R ....again default "blank activity" template
checked for updates and it is the latest version of android studio : 1.2.1.1
my jdk is the latest version : jdk1.8.0_45 (64bit)
any ideas why my android studio (freshly installed today) is generating broken templates ? or any ideas how to fix?

Related

[Q] java fx for android

hi all
i want to design my UI in android with javafx , but when i import my .fxml file to my layout (main.xml) in android i get error.
Please help me to do my Ui wth Java fx (my IDE is INTELLIJ 12)
thanks

[Q] Issue using custom SDK for application development

Hi,
I have built a custom SDK (modifying SDK 23) and set its build version (API) to 50 (So as not to clash with the existing ones). I want to use custom libraries of this SDK in my Android Studio Application. For this purpose I want to compile the application against the SDK version 50(compileSdkVersion=50).
But when I change compileSdkVersion to 50, it gives dependency errors. The support libraries, needed by application, are not generated along with Sdk generation.
Need help regarding using this custom SDK in android application.

Help - How to build Android SDK

Hi,
I need to edit some java class files in Android SDK (Target: API 23) because i want to create custom feature for my app.
Do someone know how i can rebuild SDK?
Thanks

Android studio emulator engineering build

I'm looking for a Android studio emulator engineering GSI build so I can develop (debug) system apps that use android:sharedUserId="android.uid.system" on the manifest. Where can I download them and how do I create a AVD to be used in android studio ? I'm looking for Android 8 or 9.
xjpmauricio said:
I'm looking for a Android studio emulator engineering GSI build.........
Click to expand...
Click to collapse
All I did was Google "Android studio emulator engineering GSI" as reflected on the following link...
https://www.google.com/search?q=Android+studio+emulator+engineering+GSI
... and the very first result was to the following link...
https://source.android.com/setup/build/gsi
... and if you go to that link, and scroll down a bit, you'll see the category "Downloading GSIs" that provides you with what your looking for.
If it's not on that page, then it's not available (yet) but, It looks like it is available.
Good Luck!
~~~~~~~~~~~~~~~
UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my Enigma Machine {aenigma = Latin for "Riddle" AND Nickname for "My Ex-Wife"}.
I had already looked at that page but the information is confusing. There's a page containing various userdebug builds for download for android pie:
https://ci.android.com/builds/branches/aosp-pie-gsi/grid?
There are three types of builds: eng, userdebug, and user; I'm looking for the eng type, which uses the platform test keys.
The other problem, is that if you follow one of the links you'll land on a artifacts page containing many files that can only be downloaded one by one: https://ci.android.com/builds/submitted/5467499/aosp_arm64-userdebug/latest/
I haven't found an engineering build, only userdebug and I have no ideia on how to download all the files in the artifacts page, but the main problem is that I found no instructions on how to setup an AVD that can be used on Android Studio and Windows 10.
xjpmauricio said:
I had already looked at that page but the information is confusing.........
Click to expand...
Click to collapse
Hmm... I've never, personally, looked into this using this type/specific avenue before myself.
I'm just thinking that, maybe/possibly, either @Qui Peccavit, @Droidriven or even @osm0sis may be able to provide a better answer/guidance to help you out with this.
I do wish you the best of luck with this!
~~~~~~~~~~~~~~~
UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my Enigma Machine {aenigma = Latin for "Riddle" AND Nickname for "My Ex-Wife"}.
Out of my wheelhouse, unfortunately. @phhusson is the GSI master.
I think that userdebug builds built by ci.android.com are signed with AOSP test keys, so that's good enough for you?
I don't really know how to plug in Android Studio with it though, but I heard it's quite easy
@phhusson, I just confirmed that a userdebug build uses the platform test keys; I unpacked a system.img from a userdebug build, checked the SystemUI.apk certificate, using keytool -printcert and the SHA1 is: 27:19:6E:38:6B:87:5E:76:AD:F7:00:E7:EA:84:E4:C6:EE:E3:3D:FA (the sha1 from the google platform test keys)
So...all I need to know is, using these files: https://ci.android.com/builds/submitted/5467499/aosp_arm64-userdebug/latest/
How do I create a AVD that I can use on Android Studio in Windows ? Any ideias?
@phhusson, you were right: its easy to get a userdebug build signed with AOSP test keys, they are available for download on Android Studio in the AVD manager section:
Go to Tools > AVD Manager > + Create Virtual Device > Select Phone, Nexus 5X > Next > Select X86 Images > Select Pie, Api Level 28, ABI x86_64, Target Android 9.0. > Next, etc, download and install.
All builds signed with AOSP test keys are identified by having a target name of Android 9.0, Android 8.1, etc. If you select an image, look at the panel on the right; it should say Android Open Source Project, etc.
All of the other builds of target user are identified with Target "Android 9.0 (Google APi's)" or "Android 9.0 (Google Play)", etc, and those are signed with dev keys, not test keys.
Thanks.

Converting apk to Android tv and firestick basic Source edits ?

Hello to all !
post here my question related to the title
I have an app running OK on Smartphones , Tablets , Android boxes
I'm wondering which files must to be basically edited to modify an existing app to get it runing on an Android Tv and firestick
I mean ...have to understand whats the exactly dynamic if editing manifest file reflect automatically edits to gradle ( syncing the project in Android Studio )
I had a read on Adroid official devs documents but to be honest I can figure out how to do things correctly ( edit manifest in the source before open the project in Android studio or edit it when "into " Android Studio ) do I have to manually edit even gradle file ( property and/or app ).
I know that app for TV and firestick have different behavior and doesnt require some activity like touchscreen ... they have to run with remote control , style and layout must be different so you have to add leanback to help you , banner to show in tv home ..
but my difficult is "start" to edit and where exactly to avoid load of warning in res/style and layout running the app with Tv emulator in Android Studio
Sorry for my poor explanation ...I'm an entusiast "homemade" dev

Categories

Resources