android-studio

java.lang.UnsatisfiedLinkError: dlopen failed:

巧了我就是萌 提交于 2020-01-24 11:53:47
问题 I am facing the issue while I am adding the .so file in my project, from the other ans, I have tried with different solutions but not any solution help me out. case: 1 I had tried to put my .so in src/main/jniLibs and in the gradle file I had added below lines, but getting the same error. android { sourceSets.main.jni.srcDirs = [] } case:2 I had added cpp folder with native-lib.cpp and in gradle added below code: defaultConfig { ndk { abiFilters "armeabi", "armeabi-v7a", "x86", "mips" } }

Using Amazon Web Service SDK for Android in Android Studio

假装没事ソ 提交于 2020-01-24 11:25:27
问题 I'm trying to make use of the AWS S3 storage to store images for a mobile app, but I'm not able to compile my app. I have the .jar files in my libs directory. In the dependencies section of my build.gradle file I have: dependencies { compile "com.amazonaws.services.s3:1.6.1" } I've tried every combination I can think of. com.amazonaws.services.s3:1.6.1, com.amazonaws.services:s3:1.6.1, com.amazonaws:services:1.6.1...but I always get an error about that says Could not find com.amazonaws

Android AAR lib - resource linking failed

给你一囗甜甜゛ 提交于 2020-01-24 10:01:05
问题 I'm trying to convert Android app to lib module, without copying source. I did it (modified build.gradle file), and it syncs and builds, but when I add dependency to resulting AAR file into another project (where I want to use this lib) build fails and resource linking fails. I can't understand why: original app builds and runs lib module (converted from app) builds project that uses AAR from that lib does not builds, and finds error in this AAR. For example, one of the possible errors is:

Android Studio XML error “Corresponding method handler not found” on onClick

好久不见. 提交于 2020-01-24 09:48:06
问题 Why do I get error "Corresponding method handler not found" on the XML onClick line, after naming the onClick in XML and calling it on Main Activity? Snippet from activity_main.xml: <Button android:id="@+id/buPercentage" android:layout_width="30pt" android:layout_height="30pt" android:layout_weight="1" android:background="@color/lightgray" android:onClick="buPercentageEvent" //Error says Corresponding method handler not found android:text="%" android:textSize="18sp" /> Snippet from

Android Studio 2.1 does not show local variables when debugging

南楼画角 提交于 2020-01-24 08:37:25
问题 My AS stopped showing local variables. Currently I'm using AS 2.1, but tried AS 2.0 and AS 1.5.1. It started some time ago, I guess with the update to 2.0. I've moved to the older version but it did not help. I'm using build tools 23.0.3, and gradle 2.1.0. I've also added testCoverageEnabled false to build.gradle. There are very little info about that issue around the internet, one I've found: https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Status

Android Studio 3.5 ERROR: Unable to resolve dependency for ':app@debug/compileClasspath'

余生长醉 提交于 2020-01-24 04:46:48
问题 I have this errors when I try to sync gradle. I am using Android Studio 3.5 and gradle 5.4.1 . It worked fine with this configuration and suddenly I start getting this errors. **ERROR**: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-location:[15.0.0, 16.0.0). Affected Modules: app **ERROR**: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services

Android Studio 3.5 ERROR: Unable to resolve dependency for ':app@debug/compileClasspath'

放肆的年华 提交于 2020-01-24 04:46:26
问题 I have this errors when I try to sync gradle. I am using Android Studio 3.5 and gradle 5.4.1 . It worked fine with this configuration and suddenly I start getting this errors. **ERROR**: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-location:[15.0.0, 16.0.0). Affected Modules: app **ERROR**: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services

Picasso Images are loading slow in android, why?

时光总嘲笑我的痴心妄想 提交于 2020-01-24 02:54:27
问题 The images from the Picasso libery are loading in the emulater after a few clicks and very slow. Why are they loading so slow? And what do I have to do to make them load faster. I tried it with png files and jpg. Java code private int a; ImageView ivImageFromUrl; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ivImageFromUrl=(ImageView)findViewById(R.id.iv_image_from_url); } public void buttonOnClick(View v) { //

Android XML cutting off bottom half of layout

自闭症网瘾萝莉.ら 提交于 2020-01-24 02:12:09
问题 I have a problem with my XML layout, something that I thought wouldn't give me many problems. I have a layout below in a scroll view, but the bottom of the layout is being cut off , I can't see anything past the second list view. From looking around, I can't seem to see anything wrong with the xml itself and I can't see what I am doing wrong. I have tried the suggestion to the problem, that is adding a weight to each of the different elements but this still hasnt solved the problem. I have

Google Play 64-bit requirement issue

余生长醉 提交于 2020-01-24 01:36:31
问题 I am uploading android app bundle on Google Play Store but getting 64-bit requirement error on review.My app bundle is completely Java/Kotlin based with native support as some third party has dependency on it. I have included the support for all architecture armeabi-v7a , arm64-v8a , x86 , x86_64 in gradle file also enabled split for the abi. Gradle config I have added: apply plugin: "com.android.application" apply plugin: "io.fabric" apply plugin: 'com.google.gms.google-services' apply