How to install Android Studio on a pc without internet connection? [closed] - android

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 8 years ago.
Improve this question
I'd like to install Android Studio in pc which has no internet connection.
I have already downloaded the JDK-7 and the Android Studio using
another laptop.
I have copied the both setup files and successfully installed JDK-7.
Now when i'm running android-studio setup , it requires internet
connection.(step screenshot attached)
Is there any way to skip this step by downloading any other setup(exe) file ?
After downloading all the required files (Development Studio, SDK and Platform), then when you run the Android Development Studio installation, it does not give me an option to select the previously downloaded components, but instead just goes ahead and attempts to download from the internet.

There are 3 main components to a working Android development setup:
JDK (Java Development Kit) Android
SDK (Android SoftwareDevelopment Kit)
IDE (Integrated Development Environment)
First download all three:
Download standalone JDK installer from here, and Android SDK and Android Studio from here.
Now, move the files to whichever machine you want to install your development environment on and install all of them.
The SDK comes packed with only the latest platform (21 at the time of writing) so if you need to use others, you will need to download them separately:
Platforms
• android-1.1_r1-macosx
• android-1.1_r1-linux
• android-1.5_r04-windows
• android-1.5_r04-macosx
• android-1.5_r04-linux
• android-1.6_r03-linux
• android-1.6_r03-macosx
• android-1.6_r03-windows
• android-2.0_r01-linux
• android-2.0_r01-macosx
• android-2.0_r01-windows
• android-2.0.1_r01-linux
• android-2.0.1_r01-macosx
• android-2.0.1_r01-windows
• android-2.1_r03-linux
• android-2.2_r03-linux
• android-2.3.1_r02-linux
• android-2.3.3_r02-linux
• android-3.0_r02-linux
• android-3.1_r03-linux
• android-3.2_r01-linux
Samples
• samples-2.1_r01-linux
• samples-2.2_r01-linux
• samples-2.3_r01-linux
• samples-2.3.3_r01-linux
• samples-3.0_r01-linux
• samples-3.1_r01-linux
• samples-3.2_r01-linux
• samples-14_r02
• samples-15_r02
• samples-16_r01
• samples-17_r01
• samples-18_r01
Build Tools
• build-tools_r17-windows
• build-tools_r17-linux
• build-tools_r17-macosx
• build-tools_r18.0.1-windows
• build-tools_r18.0.1-linux
• build-tools_r18.0.1-macosx
• build-tools_r18.1-windows
• build-tools_r18.1-linux
• build-tools_r18.1-macosx
• build-tools_r18.1.1-windows
• build-tools_r18.1.1-linux
• build-tools_r18.1.1-macosx
• build-tools_r19-windows
• build-tools_r19-linux
• build-tools_r19-macosx
• build-tools_r19.0.1-windows
• build-tools_r19.0.1-linux
• build-tools_r19.0.1-macosx
• build-tools_r19.0.2-windows
• build-tools_r19.0.2-linux
• build-tools_r19.0.2-macosx
• build-tools_r19.0.3-windows
• build-tools_r19.0.3-linux
• build-tools_r19.0.3-macosx
• build-tools_r19.1-windows
• build-tools_r19.1-linux
• build-tools_r19.1-macosx
Sources
• sources-14_r01
• sources-15_r02
• sources-16_r02
• sources-17_r01
• sources-18_r01
• sources-19_r02
Hope it helps.

Related

Flutter clean and build fail to complete

Steps to Reproduce
I'm not sure there is an exact way to reproduce this issue as it seems to happen at random instances when building or running the project on a physical device.
I hope this is the right place to post this.
Here is an outline of how it occurs.
I have looked at issue #36763 and its not resolving the issue.
You run a project on an ADB connected device. The app will successfully build and/or run on the devices.
Step 1 will randomly get stuck on assembling the project. This will not complete even if you wait for hours(tried it)
Ordinarily when you have a problem you will go for flutter clean . if you try this it gets also stuck for hours with no completion.
Upon inspecting this you find a file in your assembled assets with a number like "8043e5b2" but no extension. This might be an svg, png , or jpeg image which was stripped off the extension and renamed, I found out by looking inside the file or copying it outside of build and adding the extension. This file will not rename, delete or be modified on any application on windows and yes that includes the IDEs.
The only solution that I found to delete this was to boot into safe mode with CMD and delete it from there.
If you pick to go with step 5 you are going to build the app successfully for a couple of times and then it happens again. The you have to go to safe boot to delete the build again.
Version info
$ flutter doctor -v
[√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.19045.2364], locale en-UK)
• Flutter version 3.3.10 on channel stable at C:\Flutter\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 135454af32 (2 weeks ago), 2022-12-15 07:36:55 -0800
• Engine revision 3316dd8728
• Dart version 2.18.6
• DevTools version 2.15.0
Checking Android licenses is taking an unexpectedly long time...[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at C:\Usname\AppData\Local\Android\sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\xxxxx\Chrome\Application\chrome.exe
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2021.3)
• Android Studio at C:\xxx\Android\Android Studio1
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
[√] VS Code (version 1.74.2)
• VS Code at C:\mypathtoinstallation\Microsoft VS Code
• Flutter extension version 3.56.0
[√] Connected device (4 available)
•X683 (mobile) • 192.168.xx.xx:xxxx • android-arm64 • Android
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.2364]
• Chrome (web) • chrome • web-javascript • Google Chrome 108.0.5359.125
• Edge (web) • edge • web-javascript • Microsoft Edge 108.0.1462.54
[√] HTTP Host Availability
• All required HTTP hosts are available

Flutter embedded fragment renders above other views when scrolling

When a flutter fragment is embedded in a native Android application, the rendering of the fragment seems incorrect when it is being scrolled off its parent view.
As you can see the fragment draws over the taskbar, as well as the status bar. (When the fragment is the last item in the list, the button bar is also drawn over in a similar way.)
I have created a repository where this behavior can be reproduced. It is quite straightforward: One of the startup samples of Android, embedding a simple Flutter module. The flutter fragment is inside a CardView that is inside a normal Android ScrollView.
flutter doctor -v output:
• Flutter version 3.0.5 at /home/djh/snap/flutter/common/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f1875d570e (4 weeks ago), 2022-07-13 11:24:16 -0700
• Engine revision e85ea0e79c
• Dart version 2.17.6
• DevTools version 2.12.2
[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at /home/djh/Android/Sdk
• Platform android-32, build-tools 32.1.0-rc1
✗ Android SDK file not found: /home/djh/Android/Sdk/build-tools/32.1.0-rc1/aapt.
• Try re-installing or updating your Android SDK,
visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
• cmake version 3.10.2
• ninja version 1.8.2
• pkg-config version 0.29.1
[✓] Android Studio (version 2021.2)
• Android Studio at /snap/android-studio/123/android-studio
• Flutter plugin version 67.1.2
• Dart plugin version 212.5744
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
[✓] Android Studio
• Android Studio at /snap/android-studio/current/android-studio/
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• android-studio-dir = /snap/android-studio/current/android-studio/
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
[✓] VS Code
• VS Code at /snap/code/current
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (3 available)
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 12 (API 31) (emulator)
• Linux (desktop) • linux • linux-x64 • Ubuntu 18.04.6 LTS 5.4.0-122-generic
• Chrome (web) • chrome • web-javascript • Google Chrome 103.0.5060.134
[✓] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 category.
Any ideas of how to set the expected rendering for the flutter fragment?
A workaround seems to be to set the transparency of the flutter fragment to opaque. So call:
FlutterFragment.withNewEngine()
.transparencyMode(TransparencyMode.opaque)
.build();
when embedding it.
This does fix the scrolling behavior, but sometimes shows a black block, when switching between items on the nav bar.
Any other ways of addressing the scroll behavior?

Possible to Hot Reload With flutter run Command?

I'm currently making an app for Android with Flutter, and I'm using google-mobile-ads package to show banner ads.
My environment is VScode & Android emurator by Android Studio.
To run this project Execute this command:
$ flutter run --no-sound-null-safety
Not with Play button.
However if I run with this command, hot reload is disabled. Any edits don't make any changes.
flutter doctor -v;
[√] Flutter (Channel beta, 2.6.0-5.2.pre, on Microsoft Windows [Version 10.0.22000.282], locale ja-JP)
• Flutter version 2.6.0-5.2.pre at D:\src\flutter_windows_2.5.0-stable\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 400608f101 (8 weeks ago), 2021-09-15 15:50:26 -0700
• Engine revision 1d521d89d8
• Dart version 2.15.0 (build 2.15.0-82.2.beta)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at D:\Android
• Platform android-30, build-tools 29.0.3
• Java binary at: D:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.2)
• Android Studio at D:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
[√] VS Code (version 1.62.0)
• VS Code at C:\Users\yukik\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.28.0
[√] Connected device (3 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 95.0.4638.69
• Edge (web) • edge • web-javascript • Microsoft Edge 95.0.1020.44
• No issues found!
How can I make this possible?
When using flutter run you should be able to hot reload pressing r and to hot restart using R. Just press them in the terminal where you've used flutter run.
If I remember correctly, launching flutter run you should get all these info on the console as a message when starting!

Flutter: package com.it_nomads.fluttersecurestorage does not exist

I met a problem where when I build the application, it shows there is error where the package is not exists. I am using the example code that provided at pub dev of the dependency flutter_secure_storage. I have already change the minSdkVersion to 18.
Can I know is there any ways to fix this problem?
android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:16: error: package com.it_nomads.fluttersecurestorage does not exist
flutterEngine.getPlugins().add(new com.it_nomads.fluttersecurestorage.FlutterSecureStoragePlugin());
^
1 error
My flutter doctor -v
[√] Flutter (Channel stable, 2.2.1, on Microsoft Windows [Version 10.0.18363.1440], locale en-MY)
• Flutter version 2.2.1 at C:\Users\nurfa\flutter
• Framework revision 02c026b03c (6 days ago), 2021-05-27 12:24:44 -0700
• Engine revision 0fdb562ac8
• Dart version 2.13.1
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\nurfa\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\ProgramData\Oracle\Java\javapath\java.exe
• Java version Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
[√] IntelliJ IDEA Community Edition (version 2021.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.1
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
[√] VS Code (version 1.56.2)
• VS Code at C:\Users\nurfa\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.23.0
[√] Connected device (3 available)
• COR L29 (mobile) • XTX7N18B29009354 • android-arm64 • Android 9 (API 28)
• Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.77
• Edge (web) • edge • web-javascript • Microsoft Edge 90.0.818.51
after some search through Google, I have found a solution for my issue through Github. It could be some problem in the pub-cache folder. I follow the comment from one post in Github and deleted flutter_secure_storage inside the pub-cache folder and reinstall and it won't show the error anymore.
https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/127#issuecomment-522273569

Could not load compiled classes for script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' from cache [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I am facing this issue when I am compiling my Flutter application
I have recently updated to Flutter 2.0 and after that i am facing this problem on newly created project under 2.0 version
Here is my flutter doctor -v
[√] Flutter (Channel stable, 2.0.6, on Microsoft Windows [Version 10.0.18363.1500], locale en-IN)
• Flutter version 2.0.6 at C:\src\flutter
• Framework revision 1d9032c7e1 (13 days ago), 2021-04-29 17:37:58 -0700
• Engine revision 05e680e202
• Dart version 2.12.3
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\hp\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 3.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 34.0.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
[√] VS Code (version 1.56.1)
• VS Code at C:\Users\hp\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.22.0
[√] Connected device (3 available)
• Redmi Note 8 Pro (mobile) • vwnveij7hqwcrwu8 • android-arm64 • Android 10 (API 29)
• Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.212
• Edge (web) • edge • web-javascript • Microsoft Edge 89.0.774.68
• No issues found!

Categories

Resources