android-studio

Gradle error upgrading to Android Studio 3.0 Beta 1

岁酱吖の 提交于 2020-01-09 03:23:10
问题 Note: This seems to be an issue with the Android plugin. See comments for associated issues. I get the following gradle error when building the project: Gradle sync failed: Cause: java.lang.NullPointerException at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:98) at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94) at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255) at java.nio.file.Paths.get(Paths

Build unsigned APK file with Android Studio

半世苍凉 提交于 2020-01-08 17:22:12
问题 I'm developing an android app with the Android Developer Tool. Now I tried the new Android Studio, everything works fine if connect my smartphone with the pc and directly run the program in the Android Studio. But now I want to test the program with other smartphones without connecting them to my pc. The ADT creates the .apk file under "projectname/bin" every time you compile the program. How I see it at the moment the Android Studio doesn't do that. So my question is it possible to create an

Build unsigned APK file with Android Studio

故事扮演 提交于 2020-01-08 17:21:12
问题 I'm developing an android app with the Android Developer Tool. Now I tried the new Android Studio, everything works fine if connect my smartphone with the pc and directly run the program in the Android Studio. But now I want to test the program with other smartphones without connecting them to my pc. The ADT creates the .apk file under "projectname/bin" every time you compile the program. How I see it at the moment the Android Studio doesn't do that. So my question is it possible to create an

Failed to import new Gradle project: failed to find Build Tools revision *.0.0

我只是一个虾纸丫 提交于 2020-01-08 16:03:30
问题 When I boot up Android Studio and select "New Project..." and go through creating a new project, I get this popup error: Failed to import new Gradle project: failed to find Build Tools revision 17.0.0 Consult IDE log for more details (Help | Show Log) I would love to consult the IDE log, but I haven't even managed to get into the application to do much of anything. I've went through the preferences multiple times to see if I can set a path for the Build Tools, but I can't find much of

Version conflict updating to play-services 9.4.0 Android studio 2.2

邮差的信 提交于 2020-01-08 12:26:26
问题 I get an error saying Error:Execution failed for task ':app:processDebugGoogleServices'. > Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0. I tried looking at https://bintray.com/android/android-tools/com.google.gms.google-services/ and com.google.gms:google

Version conflict updating to play-services 9.4.0 Android studio 2.2

♀尐吖头ヾ 提交于 2020-01-08 12:25:31
问题 I get an error saying Error:Execution failed for task ':app:processDebugGoogleServices'. > Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0. I tried looking at https://bintray.com/android/android-tools/com.google.gms.google-services/ and com.google.gms:google

Continuous integration with jenkins using android studio

守給你的承諾、 提交于 2020-01-07 09:55:09
问题 I am new here to develop android application with android studio. I created sample basic application, from this i got the project structure of the application with build.gradle files in each module(which is different from eclipse). Then I successfully commit the code and push the entire project code to git repository by using Version Control System (VCS) in it. I need to configure my project with jenkins server for continuous integration. Can any one give me the step by step procedure, how to

Continuous integration with jenkins using android studio

余生颓废 提交于 2020-01-07 09:54:31
问题 I am new here to develop android application with android studio. I created sample basic application, from this i got the project structure of the application with build.gradle files in each module(which is different from eclipse). Then I successfully commit the code and push the entire project code to git repository by using Version Control System (VCS) in it. I need to configure my project with jenkins server for continuous integration. Can any one give me the step by step procedure, how to

GradientDrawable with OVAL shape not working inside programatically added Text View

房东的猫 提交于 2020-01-07 09:44:31
问题 I have programmatically added Text View and Button . Code final TextView test = new TextView(getApplicationContext()); test.setText(String.valueOf(counterQuantity)); test.setTextColor(getResources().getColor(R.color.black)); test.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 10); GradientDrawable border = new GradientDrawable(); border.setShape(GradientDrawable.OVAL); border.setStroke(1, getResources().getColor(R.color.black)); border.setCornerRadius(2); border.setColor(getResources().getColor(R

Why has my Android app stopped? [duplicate]

隐身守侯 提交于 2020-01-07 09:43:57
问题 This question already has answers here : What is a NullPointerException, and how do I fix it? (12 answers) Closed 4 years ago . I make my application in Android Studio. I run this application but the Android app stopped. I make a app with an animation. Here is my source code: AndroidManifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.geven.animation" > <application android:allowBackup="true" android:icon="@mipmap