[Q] CLOSED: Configuring Content Roots - Android Studio

How can I configure content roots?
The documentation seems to be out-of-date.
Version: Android Studio 1.0.2
Documentation: https://www.jetbrains.com/idea/help/configuring-content-roots.html
Thanks,
Barry
-----------
Update:
-----------
From IntelliJ Support:
In AS everything is configured in build.gradle and handled by Gradle.
Android Studio is based on IDEA core code, but it is developed by Google.
As far as I've been able to discern, Google hasn't provided any comprehensive documentation for Android Studio yet.
Closing this out.

Related

SlateKit Base for Nexus 7 (2013) Released

SlateKit is a drop-in replacement of Android UI stack,
to help makers building custom tablet UI, by using Qt/QML, JavaScript and Chromium.
Screenshot: imgur.com/Sdai8zc
Today we announce the first technical preview of SlateKit Base for Nexus 7 (2013),
the platform-specific port, alone with other UI components like SlateKit Shell, LockScreen and Keyboard.
Prerequisite
Nexus 7 “razor” [2013] (WiFi)
Android 4.4.2 (KOT49H)
rooted and adb shell access
Installation
Download the image: goo.gl/ybYVO1 (146.7 MB)
Unzip files to /data, make sure busybox has executable permission
Start the UI by:
Code:
./chroot.sh
Technical details
SlateKit Base essentially consists:
a minimal Ubuntu root filesystem (Trusty/armhf)
Qt 5.2.1 and Oxide 1.0 (Chromium content API wrapper)
libhybris for hardware acceleration
hwcomposer QPA from Mer project
What's next?
Theoretically this rootfs works for all Android 4.4 system with HW composer 1.1/1.2,
so I'll try to enable it on other SoC and make an installer.
If you find this interesting or useful, welcome to join the project on github.com/penk/SlateKit,
and ping me on Twitter @penk or [email protected]
Happy Hacking!
penk
You'd think you'd at least post this in the correct section...
This is the 2012 Nexus 7 forum. Wrong section.

Just published ---> DexPatcher: Modify APKs at source-level using Java

we interrupt your scheduled programming to announce... DexPatcher
it might interest...
apktool / baksmali / smali users: like said tools it lets you patch APKs, but coding in java instead of smali.
Xposed developers: like Xposed it lets you mod APKs using java, but ahead of runtime and producing a standalone APK.
just published now, visit the project here...
[TOOL] DexPatcher: Modify Android DEX/APK files at source-level using Java
http://forum.xda-developers.com/android/software/tool-dexpatcher-modify-android-dex-apk-t3060854
​
thanks for your time!
Public service announcement: DexPatcher grew in scope and now bundles Apktool and dex2jar...
THE ALL-NEW DEXPATCHER PREVIEW IS UP !!!
Come take a look !
​

Rebuild required after changing xml layout files in Android Studio

I am developing in Android Studio.
There is a problem though. When I change the code and I run the app it works fine, But when i change something in the layout it does not change until i do a clean project. e.g. i add a button and run the app, the button does not exist but when i do a clean project it is there...
Even Android studio shows an error when accessing the id of the newly added view...
Please help me solve this problem. Any help would be much appreciated.
Additional information:
-Android Studio version: 1.3.1
-Operating system: windows
-Gradle version: 2.6
I am having multiple directories as my resources with gradle like this:
Code:
sourceSets{
main {
manifest.srcFile 'src/main/AndroidManifest.xml'
java.srcDirs = ['src/main/java', '.apt_generated']
aidl.srcDirs = ['src/main/aidl', '.apt_generated']
res.srcDirs = [
'src/main/res',
'src/main/res/layouts/test',
'src/main/res/layouts/login',
'src/main/res/layouts/main',
'src/main/res/layouts/includes'
]
}
}
When i try to run the project with changed layout it says:
No apk changes detected. Skipping file upload, force stopping package instead.
DEVICE SHELL COMMAND: am force-stop com.my.package
Click to expand...
Click to collapse
saeednt said:
I am developing in Android Studio.
There is a problem though. When I change the code and I run the app it works fine, But when i change something in the layout it does not change until i do a clean project. e.g. i add a button and run the app, the button does not exist but when i do a clean project it is there...
Even Android studio shows an error when accessing the id of the newly added view...
Please help me solve this problem. Any help would be much appreciated.
Additional information:
-Android Studio version: 1.3.1
-Operating system: windows
-Gradle version: 2.6
I am having multiple directories as my resources with gradle like this:
Code:
sourceSets{
main {
manifest.srcFile 'src/main/AndroidManifest.xml'
java.srcDirs = ['src/main/java', '.apt_generated']
aidl.srcDirs = ['src/main/aidl', '.apt_generated']
res.srcDirs = [
'src/main/res',
'src/main/res/layouts/test',
'src/main/res/layouts/login',
'src/main/res/layouts/main',
'src/main/res/layouts/includes'
]
}
}
When i try to run the project with changed layout it says:
Click to expand...
Click to collapse
Look, there are couple of things you should see,
first when you make changes you should save it every time when you make changes in it
go over all the functions you created and make sure they are wire up correctly and they should not get separated when you make changes, App location can be a problem as well, go over from your code couple of times you will find out the issue because its in your hand

Build issue after importing a non gradle (Titanium Android Module) existing project in Android Studio

Build issue after importing a non gradle (Titanium Android Module) existing project in Android Studio which has different folder structure.
I have an existing project based on Titanium framework but want to use it in Android Studio for further development.
Imported existing project into Android Studio “Open an existing project” opening the folder which has AndroidManifest.xml file. Added external Titanium libraries required for the project, few errors got resolved.
Facing build issues :
Cannot resolve symbol “@drawable/appicon”
Class referenced in the manifest com.xxxx.xxxxx was not found in the project or the libraries
Cannot resolve symbol “@string/app_name”
Cannot resolve symbol “@style/Theme.AppCompact”
Cannot resolve symbol “@style/Theme.AppCompact.Translucent”
Cannot resolve symbol “@style/Theme.Titanium”
Please help me out resolving this errors.

New projects in Android Studio Dolphin failes with Duplicate class errors

Hello
I try to create new projects with Android Studio Dophin (2021.3.1) which fails nevertheless with java or kotlin on win and linux systems:
Default gradle version: 7.4
Default android gradle plugin version 7.3.0
Compile SDK Version: 32
Target SDK Version: 32
Min SDK Version: 21
Create a new project with Basic Activity will fail with the folliwing error:
Duplicate class androidx.lifecycle.ViewModelLazy found in modules lifecycle-viewmodel-2.5.1-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.1) and lifecycle-viewmodel-ktx-2.3.1-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1)
Duplicate class androidx.lifecycle.ViewTreeViewModelKt found in modules lifecycle-viewmodel-2.5.1-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.1) and lifecycle-viewmodel-ktx-2.3.1-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1)
Go to the documentation to learn how to Fix dependency resolution errors.
Click to expand...
Click to collapse
Any hints?

Categories

Resources