android-studio

Project with path '' could not be found in root project ''

三世轮回 提交于 2020-01-17 05:10:13
问题 I have just imported a project from eclipse. The project consists of an android library project linking to the main apk project. Folder structure is simple I have rootFolder 1) carEgiriLibrary 2) carEgiriPuneBangalore I get this error when Gradle try's to sync. Error:(5, 0) Project with path ':personal:mCruiseOn:carEgiriLibrary' could not be found in root project 'carEgiriPuneBangalore'. Open File Gradle-wrapper.properties #Wed Apr 10 15:27:10 PDT 2013 distributionBase=GRADLE_USER_HOME

Is there anything like ctrl + shift + T of eclipse in Android studio to see Open Type Window

一个人想着一个人 提交于 2020-01-17 04:29:07
问题 I just want to check some imported class belongs to which jar , that is it. There is alternative by checking each jar for the same package included in my code but i have lot of jar file included in my project , so i am specifically looking for the shortcut like eclipse Thanks In advance. Yash. 回答1: Ctrl + n to open up the class view and there you can see from which jars the classes come from. When you press it once it shows just for local modules/projects. When you press it twice it includes

How to use StringUtils and myString, getting cannot resolve error

半城伤御伤魂 提交于 2020-01-17 04:19:26
问题 Running the below code and can't resolve StringUtils and myString... does something need imported or is there another way? this takes a string from another activity and makes it an integer to allow a calculation of old and new values. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // Setting button as a unique name Button buttonAdd = (Button) findViewById(R.id.add_button); Button buttonAbout = (Button)

I need loadLibrary two so library files on Android Studio v1.1.0

烂漫一生 提交于 2020-01-17 03:35:29
问题 I had an examples for two so files for one app which is very simple, and I just have tried to do same code on Android Studio 1.1.0. I refer many web sites, so I put my so files on "src/main/jniLis/[arch]/" and run my app. But it was failed. This is error log from ddms. UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.mdsedu.twolibstatic-2/base.apk"],nativeLibraryDirectories=[/data/app/com.mdsedu.twolibstatic-2/lib/arm, /vendor/lib, /system/lib]]] couldn

Error in activity_main.xml after creating a new project

喜欢而已 提交于 2020-01-17 01:37:08
问题 I have created a new project and after build is done, when I tried opening activity_main.xml it is giving me following Rendering error: Can anyone tell, what's the possible reason behind this and how to solve this problem? I have just started learning android , but in the very beginning I am getting stuck. As asked, adding my app's build.gradle and layout.xml : Build.gradle: apply plugin: 'com.android.application' android { compileSdkVersion 27 buildToolsVersion "28.0.0" defaultConfig {

GoogleMaps displaying “locals” on wrong position

落爺英雄遲暮 提交于 2020-01-17 01:32:05
问题 i want to display the CurrentPosition of the mobile phone and display all bar|cafe nearby the position. The CurrentPosition works. But the displaying of the bars/cafes is wrong. It seems like they are showing up from the center of vienna and not from the position of my phone. Would be really thankful if someone could find the problem MapsActivity.java package androfenix.currentpositionandplacesnearby; import android.Manifest; import android.content.pm.PackageManager; import android.location

After add images to drawable “Cannot resolve symbol R” issue not going away after clean, rebuild etc

…衆ロ難τιáo~ 提交于 2020-01-17 01:30:11
问题 I can't find a way to add images to drawable folder without getting "Cannot resolve symbol R" issue. And once i get "Cannot resolve symbol R", I can't get rid of it by either clean, rebuild, sync, invalidate cache & restart solutions for the error. Only if i delete the files can I get the build to pass. I am not sure what is wrong here. Note: I am on Android Studio 2.1.1 回答1: You are facing this issue because your drawable file name is either having any capital letter or starting with a

How can I resolve actionbarSherlock conflict with appcompat? [closed]

巧了我就是萌 提交于 2020-01-16 18:29:52
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . I have an old app, builds with actionbarSherlock and appcompact. I have import the project from eclipse to gradle, but when I compile the project the shell shows me a lot of errors that warnsme that there are duplicates. Like this: Error: Attribute "subtitleTextStyle" has already been defined. How

Error Running Gradle - gradlew.bat exited abnormally (Error after adding firebase)

空扰寡人 提交于 2020-01-16 18:00:50
问题 I am trying to read the firestore database. I have: * Registered My app on firebase . * copied googleservices.json in the app directory. * copied the dependencies as firebase instructed. Flutter Doctor Upgrading Flutter from C:\flutter... fa174a123..f31fc1bd0 master -> origin/master * [new branch] revert-34243-flutter_frame_event -> origin/revert-34243-flutter_frame_event Updating b593f5167..7a4c33425 11 files changed, 488 insertions(+), 83 deletions(-) Upgrading engine... Flutter 1.5.4

How to call getPackageManager() from Android command-line executable

眉间皱痕 提交于 2020-01-16 11:16:20
问题 I am writing a command-line tool for Android (such that it would be called via 'adb shell' or the like, as opposed to being launched via the Android interface). I want to write something that uses the same kind of information as the 'pm list packages' tool that you can run from an adb shell, which I presume uses getPackageManager() or something like it. So I've figured out how to compile and run a Java tool in Dalvik, but I can't figure out how to get it the context it needs for