android-studio

Gradle build failed in Android Studio

谁说胖子不能爱 提交于 2020-01-20 19:48:24
问题 I am using Android Studio on Ubuntu. I started Android Studio, created a "New Project" and started it with Shift+F10 . It threw the following error: /home/laptop/AndroidStudioProjects/TestIt420/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.0.0/res/drawable-mdpi-v4/abc_btn_radio_to_on_mtrl_000.png Error:Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/laptop/Android/Sdk/build-tools/21.1.2/aapt'

Gradle build failed in Android Studio

限于喜欢 提交于 2020-01-20 19:48:24
问题 I am using Android Studio on Ubuntu. I started Android Studio, created a "New Project" and started it with Shift+F10 . It threw the following error: /home/laptop/AndroidStudioProjects/TestIt420/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.0.0/res/drawable-mdpi-v4/abc_btn_radio_to_on_mtrl_000.png Error:Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/laptop/Android/Sdk/build-tools/21.1.2/aapt'

Gradle build failed in Android Studio

你离开我真会死。 提交于 2020-01-20 19:47:00
问题 I am using Android Studio on Ubuntu. I started Android Studio, created a "New Project" and started it with Shift+F10 . It threw the following error: /home/laptop/AndroidStudioProjects/TestIt420/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.0.0/res/drawable-mdpi-v4/abc_btn_radio_to_on_mtrl_000.png Error:Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/laptop/Android/Sdk/build-tools/21.1.2/aapt'

Gradle merge wrapper/sub-module's Android manifest into a main module's manifest

无人久伴 提交于 2020-01-20 09:36:42
问题 I have the following modules inside my project for which I cannot get Gradle to merge the Android manifests properly: myproject_alpha myproject_beta myproject_lib myproject_release The *_lib module is the main module for the project that contains all source code. The other 3 modules are "wrapper modules" that make slight modifications to the content providers' "authorities" parameter, change the "data" field inside an activity's intent filter specified in the *_lib module's manifest, plus

Gradle merge wrapper/sub-module's Android manifest into a main module's manifest

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-20 09:32:26
问题 I have the following modules inside my project for which I cannot get Gradle to merge the Android manifests properly: myproject_alpha myproject_beta myproject_lib myproject_release The *_lib module is the main module for the project that contains all source code. The other 3 modules are "wrapper modules" that make slight modifications to the content providers' "authorities" parameter, change the "data" field inside an activity's intent filter specified in the *_lib module's manifest, plus

FragmentTabHost graphical layout doesn't render

你。 提交于 2020-01-20 02:08:28
问题 The graphical layout for a simple android.support.v4.app.FragmentTabHost never renders in either Eclipse or Android Studio. The Console error I get is consistently: Exception raised during rendering: No tab known for tag null I'm using the most basic XML file: <android.support.v4.app.FragmentTabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android

Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord in Android Studio

为君一笑 提交于 2020-01-19 07:10:46
问题 I am getting this error when I am trying to read contacts from phone and I included READ_CONTACTS permission in Manifest file. And the strange thing is that it was working fine in Eclipse but when I converted my project to Gradle and run it in Android Studio I'm getting this error. logcat says: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{302f069 29282:com.GP/u0a322} (pid=29282, uid=10322) requires android.permission.READ_CONTACTS or

Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord in Android Studio

半城伤御伤魂 提交于 2020-01-19 07:09:41
问题 I am getting this error when I am trying to read contacts from phone and I included READ_CONTACTS permission in Manifest file. And the strange thing is that it was working fine in Eclipse but when I converted my project to Gradle and run it in Android Studio I'm getting this error. logcat says: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{302f069 29282:com.GP/u0a322} (pid=29282, uid=10322) requires android.permission.READ_CONTACTS or

Importing Facebook library in Android Studio: Could not find property 'ANDROID_BUILD_SDK_VERSION'

假装没事ソ 提交于 2020-01-19 03:10:11
问题 I want to import a library project into my app but whenever I try to do so , Android Studio doesn't recognise it It also gives me errors in build.gradle .. The Library is : PagerSlidingTabStrip .... Here are some pictures : I have been trying to make it work for 3 days so far !! Please Help Me :) EDIT: apply plugin: 'android-library' dependencies { compile 'com.android.support:support-v4:19.0.0' } android { compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)

Importing Facebook library in Android Studio: Could not find property 'ANDROID_BUILD_SDK_VERSION'

只愿长相守 提交于 2020-01-19 03:09:07
问题 I want to import a library project into my app but whenever I try to do so , Android Studio doesn't recognise it It also gives me errors in build.gradle .. The Library is : PagerSlidingTabStrip .... Here are some pictures : I have been trying to make it work for 3 days so far !! Please Help Me :) EDIT: apply plugin: 'android-library' dependencies { compile 'com.android.support:support-v4:19.0.0' } android { compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)