android-studio

Sdkmanager “Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli” on Windows

瘦欲@ 提交于 2020-08-27 06:37:17
问题 I am trying to install Flutter without Android Studio and here is what I did: Installed Java 8 Installed and Unzipped Flutter SDK to C:\src . Installed and Unzipped Android Command-line tools (sdkmanager) to C:\Android . Added the environment variables (ANDROID_HOME: C:\Android) Now when I try to run sdkmanager to install Android SDK, I get this error: "Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli" I have tried reinstalling Flutter sdk and the

android.view.ContextThemeWrapper cannot be cast to android.app.Activity

微笑、不失礼 提交于 2020-08-27 06:27:05
问题 I'm not a designer but when i got this project i can`t open specifically some screens, i think that they are screens and we only reuse some of the layouts have been created. Anyway can somebody help me? @Override public void onBindViewHolder(@NonNull final ProductsAdapter.ViewHolder holder, final int position) { String imageUrl = ProductsList.get(position).getImage(); holder.itemName.setText(ProductsList.get(position).getName()); Picasso.with(context).load(imageUrl).into(holder.itemImage);

android.view.ContextThemeWrapper cannot be cast to android.app.Activity

雨燕双飞 提交于 2020-08-27 06:24:35
问题 I'm not a designer but when i got this project i can`t open specifically some screens, i think that they are screens and we only reuse some of the layouts have been created. Anyway can somebody help me? @Override public void onBindViewHolder(@NonNull final ProductsAdapter.ViewHolder holder, final int position) { String imageUrl = ProductsList.get(position).getImage(); holder.itemName.setText(ProductsList.get(position).getName()); Picasso.with(context).load(imageUrl).into(holder.itemImage);

After updating Android Studio from 3.6 to 4.0, close project not works

偶尔善良 提交于 2020-08-27 03:46:56
问题 The same question as this one. I have two android projects on two windows, when I close one project by clicking [x] icon on my mac, the project closed but the window exists with a blank screen. My Android Studio Version info: Android Studio 4.0 Build #AI-193.6911.18.40.6514223, built on May 20, 2020 Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.15.4 GC: ParNew, ConcurrentMarkSweep Memory: 1979M Cores: 12 Registry: ide.new

Flutter A newer version of the Android SDK is required. To update, run: error?

蹲街弑〆低调 提交于 2020-08-26 07:37:09
问题 I install flutter but give some error. I know a lot of solution for this error but them are not fix for me. How can ı solve this problem ? My JAVA_HOME at C:\Program Files\Java\jdk-13.0.2 command C:\Users\Flamador>flutter doctor --android-licenses A newer version of the Android SDK is required. To update, run: C:\Users\Flamador\AppData\Local\Android\Sdk\tools\bin\sdkmanager --update command C:\Users\Flamador>C:\Users\Flamador\AppData\Local\Android\Sdk\tools\bin\sdkmanager --update Exception

Flutter A newer version of the Android SDK is required. To update, run: error?

為{幸葍}努か 提交于 2020-08-26 07:37:00
问题 I install flutter but give some error. I know a lot of solution for this error but them are not fix for me. How can ı solve this problem ? My JAVA_HOME at C:\Program Files\Java\jdk-13.0.2 command C:\Users\Flamador>flutter doctor --android-licenses A newer version of the Android SDK is required. To update, run: C:\Users\Flamador\AppData\Local\Android\Sdk\tools\bin\sdkmanager --update command C:\Users\Flamador>C:\Users\Flamador\AppData\Local\Android\Sdk\tools\bin\sdkmanager --update Exception

My Alarm Manager does not work in background

匆匆过客 提交于 2020-08-26 05:39:06
问题 I prepared for my application alarm manager. I need run this every hour and check if data is changed. I have set the alarm manager like this: Calendar cal = Calendar.getInstance(); cal.add(Calendar.HOUR, 1); android.app.AlarmManager alarmMgr = (android.app.AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); Intent intent = new Intent(mContext, AnalysisNotificationReceiver.class); PendingIntent pendingIntent = PendingIntent.getBroadcast(mContext, ALARM_ID, intent, 0); if (Calendar

How can I decide to add .idea/jarRepositories.xml in .gitignore

元气小坏坏 提交于 2020-08-26 03:49:32
问题 I found an unfamiliar file .idea/jarRepositories.xml , when I updated Android Studio 3.5.3 to 4.0.1 on Mac. The content is as follows: <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="RemoteRepositoriesConfiguration"> <remote-repository> <option name="id" value="central" /> <option name="name" value="Maven Central repository" /> <option name="url" value="https://repo1.maven.org/maven2" /> </remote-repository> <remote-repository> <option name="id" value="jboss

Which Java JDK should I install for the use of Android Studio

烈酒焚心 提交于 2020-08-25 01:44:18
问题 I want to install Android Studio and I saw that it is recommended to also install the Java JDK. The thing that I don't understand is that a lot of people are recommending the Java SE Development Kit 8 but the latest one is 13. Why would I use 8 instead of 13? Can anyone tell me the exact version of JDK that should be used for Android Studio? Thanks in advance. 回答1: The official doc says: Set the JDK version A copy of the latest OpenJDK comes bundled with Android Studio 2.2 and higher, and

Which Java JDK should I install for the use of Android Studio

余生长醉 提交于 2020-08-25 01:41:06
问题 I want to install Android Studio and I saw that it is recommended to also install the Java JDK. The thing that I don't understand is that a lot of people are recommending the Java SE Development Kit 8 but the latest one is 13. Why would I use 8 instead of 13? Can anyone tell me the exact version of JDK that should be used for Android Studio? Thanks in advance. 回答1: The official doc says: Set the JDK version A copy of the latest OpenJDK comes bundled with Android Studio 2.2 and higher, and